|
Side of Software Persistence Library 2.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sos.db.LongMap<V>
public final class LongMap<V>
A utility class that maps long
keys to Object
values.
Nested Class Summary | |
---|---|
static class |
LongMap.Entry<V>
A utility class used by LongMap that captures
a mapping between a long key and an Object value. |
Method Summary | |
---|---|
java.util.Iterator<LongMap.Entry<V>> |
entryIterator()
Returns a read-only iterator that iterates through this map's entries. |
V |
get(long key)
Returns the object mapped to key , or null if
no such mapping exists. |
boolean |
isEmpty()
Returns true if this map contains no mappings. |
int |
size()
Returns the number of key-value mappings in this map. |
java.util.Iterator<V> |
valueIterator()
Returns a read-only iterator of the values in this map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.util.Iterator<LongMap.Entry<V>> entryIterator()
LongMap.Entry
.
LongMap.Entry
public V get(long key)
key
, or null
if
no such mapping exists.
key
- the key for which to find the associated object
key
, or null if nonepublic boolean isEmpty()
true
if this map contains no mappings.
true
if this map contains no mappings; false
, otherwisepublic int size()
public java.util.Iterator<V> valueIterator()
|
Side of Software Persistence Library 2.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |