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.Record
public java.lang.String getRecordShortDescription()
getRecordShortDescription
in interface javax.resource.cci.Record
public void setRecordName(java.lang.String arg0)
setRecordName
in interface javax.resource.cci.Record
arg0
- The name of the recordpublic void setRecordShortDescription(java.lang.String arg0)
setRecordShortDescription
in interface javax.resource.cci.Record
arg0
- The description of the recordpublic boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
o
- The record or byte[] to add.public void add(int index, java.lang.Object o)
add
in interface java.util.List
index
- 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.Collection
addAll
in interface java.util.List
c
- The collection of objects to add.public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
index
- The index at which to add the collectionc
- The collection of objects to addpublic void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.List
o
- The object for which to checkpublic boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
c
- The collection of objects to search forpublic java.lang.Object get(int index)
get
in interface java.util.List
index
- The index at which to get the objectpublic int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
o
- The object to search forpublic boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
o
- The object to search forpublic java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
o
- The object to removepublic java.lang.Object remove(int index)
remove
in interface java.util.List
index
- The index that should be removedpublic boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
c
- The collection of objects to remove.public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
java.lang.UnsupportedOperationException
public java.lang.Object set(int index, java.lang.Object o)
set
in interface java.util.List
index
- The index at which to set the objecto
- The object to setpublic int size()
size
in interface java.util.Collection
size
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
fromIndex
- The index from which to starttoIndex
- The index at which to endpublic java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
a
- An array of byte[] objects to be filled in.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface javax.resource.cci.Record
clone
in class java.lang.Object
java.lang.CloneNotSupportedException