public class IndexedRecordImpl
extends java.lang.Object
implements javax.resource.cci.IndexedRecord
| Constructor and Description |
|---|
IndexedRecordImpl()
Public, general purpose constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Object o)
Adds an element to the record.
|
boolean |
add(java.lang.Object o)
Adds an element to the record.
|
boolean |
addAll(java.util.Collection c)
Adds all of the elements of the collection to the record.
|
boolean |
addAll(int index,
java.util.Collection c)
Adds all the elements of the collection to the record at the specified
index.
|
void |
clear()
Clears the record of all data.
|
java.lang.Object |
clone()
Makes a copy of the list.
|
boolean |
contains(java.lang.Object o)
Searches the record for the specified entry.
|
boolean |
containsAll(java.util.Collection c)
Searches the record for the specified entrys.
|
java.lang.Object |
get(int index)
Retrieves an object from the record at the specified index.
|
java.lang.String |
getRecordName()
Gets the record name (created by the client)
|
java.lang.String |
getRecordShortDescription()
Gets the description
|
int |
indexOf(java.lang.Object o)
Gets the index of a particular entry.
|
boolean |
isEmpty()
Checks to see if the record is empty
|
java.util.Iterator |
iterator()
Gets an iterator over the records
|
int |
lastIndexOf(java.lang.Object o)
Gets the last index of a particular entry.
|
java.util.ListIterator |
listIterator()
Gets a list iterator over the records.
|
java.util.ListIterator |
listIterator(int index)
Gets a list iterator starting at the specified index.
|
java.lang.Object |
remove(int index)
Removes a specified element from the list, based on index.
|
boolean |
remove(java.lang.Object o)
Removes an object from the list.
|
boolean |
removeAll(java.util.Collection c)
Removes all members of the specified collection.
|
boolean |
retainAll(java.util.Collection c)
This operation is not supported.
|
java.lang.Object |
set(int index,
java.lang.Object o)
Sets an element at a given index.
|
void |
setRecordName(java.lang.String arg0)
Sets the record name
|
void |
setRecordShortDescription(java.lang.String arg0)
Sets the description
|
int |
size()
Returns the size of the record (number of elements).
|
java.util.List |
subList(int fromIndex,
int toIndex)
Returns a portion of the record, as a list.
|
java.lang.Object[] |
toArray()
Creates an array of byte[] objects representing the elements of this record.
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array of byte[] objects.
|
public java.lang.String getRecordName()
getRecordName in interface javax.resource.cci.Recordpublic java.lang.String getRecordShortDescription()
getRecordShortDescription in interface javax.resource.cci.Recordpublic void setRecordName(java.lang.String arg0)
setRecordName in interface javax.resource.cci.Recordarg0 - The name of the recordpublic void setRecordShortDescription(java.lang.String arg0)
setRecordShortDescription in interface javax.resource.cci.Recordarg0 - The description of the recordpublic boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listo - The record or byte[] to add.public void add(int index,
java.lang.Object o)
add in interface java.util.Listindex - The index at which to add the objecto - The byte[] or Record to insertpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.Listc - The collection of objects to add.public boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.Listindex - The index at which to add the collectionc - The collection of objects to addpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Listpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Listo - The object for which to checkpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.Listc - The collection of objects to search forpublic java.lang.Object get(int index)
get in interface java.util.Listindex - The index at which to get the objectpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.Listo - The object to search forpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Listpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listpublic int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.Listo - The object to search forpublic java.util.ListIterator listIterator()
listIterator in interface java.util.Listpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.Listpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listo - The object to removepublic java.lang.Object remove(int index)
remove in interface java.util.Listindex - The index that should be removedpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.Listc - The collection of objects to remove.public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.Listjava.lang.UnsupportedOperationExceptionpublic java.lang.Object set(int index,
java.lang.Object o)
set in interface java.util.Listindex - The index at which to set the objecto - The object to setpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listpublic java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListfromIndex - The index from which to starttoIndex - The index at which to endpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.Listpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.Lista - An array of byte[] objects to be filled in.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface javax.resource.cci.Recordclone in class java.lang.Objectjava.lang.CloneNotSupportedException