|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An IndexMap provides a mapping from keys to values. Indexes are used by the Query class to perform query optimization, and can also be accessed directly to lookup values or iterate in index-order. A collection must implement the IndexedCollection interface to have indexes (IndexedCollection provides methods for adding, removing, and accessing the collection's indexes). Each such index implements the IndexMap interface. Note that a collection holds all of its indexes, but the indexes do not have backpointers to the collection. This class is included in PSE Pro, but not in PSE.
Method Summary | |
boolean |
containsKey(Object key)
Returns true if this IndexMap contains a mapping for the specified key. |
boolean |
duplicates()
Returns true is this index allows duplicate keys. |
Object |
get(Object key)
Returns the value to which this IndexMap maps the specified key. |
boolean |
isEmpty()
Returns true if this IndexMap contains no key-value mappings. |
IndexIterator |
iterator()
Returns an iterator over the IndexMap. |
IndexIterator |
iterator(Object startKey)
Returns an iterator on the IndexMap, starting at the given key. |
boolean |
ordered()
Returns true if this index is ordered. |
int |
size()
Returns the number of key-value mappings in this IndexMap. |
Method Detail |
public boolean ordered()
public boolean duplicates()
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
key
- key whose presence in this IndexMap is to be tested.public Object get(Object key)
key
- key whose associated value is to be returned.public IndexIterator iterator()
public IndexIterator iterator(Object startKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |