|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A RowCollection is a collection of Row entities. It uses the Row's key field value as the key to that Row entitiy.Its also possible to a get a iterator of the Row entities in this RowCollection.
Example:
Where syncBo is a SyncBo and rowDesc a RowDescriptor.
RowCollection rowList = syncBo.getRows(rowDesc);
//To get a specified row101 whose key is syncKey
Row row101 = rowList.get(syncKey);
//To get the number of Rows present in the collection
int size = rowList.size();
//To test if the row with the key as syncKey is present in the collection
boolean contains = rowList.contains(syncKey);
//To get the iterator of the Row entities in this RowCollection.
MeIterator it = rowList.iterator();
Method Summary | |
boolean |
contains(java.lang.Object key)
Tests if the specified object is a key in this collection. |
Row |
get(java.lang.Object key)
Returns the Row entitiy to which the specified key is mapped in this RowCollection. |
MeIterator |
iterator()
Returns the iterator of the Row entities in this RowCollection. |
int |
size()
Returns the number of Row entities in this RowCollection. |
Method Detail |
public int size()
public Row get(java.lang.Object key)
key
- a key in the collection
public boolean contains(java.lang.Object key)
key
- a possible key object
public MeIterator iterator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |