|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDMap
A mapping from unique long ids to HasIDs.
| Method Summary | |
|---|---|
void |
add(HasID o)
Store the supplied object in the IDMap. |
HasID |
byID(long id)
Return the object stored with the specified id, if present. |
HasID |
get(int index)
Return the object at the specified location. |
Iterator |
getIDIterator()
Return an Iterator that hands out each id in the map as a Long. |
boolean |
isComplete()
Return a flag indicating that this map is complete. |
Iterator |
iterator()
Return an Iterator that hands out each object from the IDMap. |
void |
removeID(long id)
Remove the object with the specified id. |
void |
setComplete(boolean c)
Set the completeness status of this map. |
| Method Detail |
|---|
boolean isComplete()
false
and is controlled entirely at the whim of the other data set code
since naturally the IDMap has no idea if it is a complete map or not.
void setComplete(boolean c)
c - the new statusHasID byID(long id)
id - the id
HasID get(int index)
index - the location of the object, counting from 0
null if not foundvoid add(HasID o)
o - the object to storevoid removeID(long id)
id - the idIterator iterator()
Iterator that hands out each object from the IDMap.
Iterator getIDIterator()
Iterator that hands out each id in the map as a Long.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||