public class LongIntTreeMap extends AbstractTreeMap implements LongIntSortedMap
AbstractTreeMap.Entry, AbstractTreeMap.EntryIterator, AbstractTreeMap.ValueIterator| Constructor and Description |
|---|
LongIntTreeMap() |
LongIntTreeMap(boolean allowDuplicates) |
LongIntTreeMap(LiteralComparator comparator) |
LongIntTreeMap(LiteralComparator comparator,
boolean allowDuplicates) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected int |
compare(AbstractTreeMap.Entry e1,
AbstractTreeMap.Entry e2) |
boolean |
containsKey(long key) |
long |
firstKey() |
int |
get(long key) |
LiteralIterator |
keyIterator() |
LiteralIterator |
keyRangeIterator(long fromKey,
boolean fromInc,
long toKey,
boolean toInc) |
long |
lastKey() |
int |
put(long key,
int value) |
int |
remove(long key) |
int |
remove(long key,
int val) |
IntIterator |
valueRangeIterator(long fromKey,
boolean fromInc,
long toKey,
boolean toInc) |
comparator, containsValue, decrementSize, find, findCeiling, findPredecessor, fixUpInsert, fixUpRemove, getMaximum, getMedian, getMinimum, getUniqueCount, incrementSize, isAllowDuplicates, isEmpty, maximum, minimum, predecessor, remove, rotateLeft, rotateRight, size, successor, valueIteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, containsValue, getMaximum, getMedian, getMinimum, getUniqueCount, isAllowDuplicates, isEmpty, size, valueIteratorpublic LongIntTreeMap()
public LongIntTreeMap(boolean allowDuplicates)
public LongIntTreeMap(LiteralComparator comparator)
public LongIntTreeMap(LiteralComparator comparator, boolean allowDuplicates)
public void clear()
clear in interface IntSortedMapclear in class AbstractTreeMapMap.clear()public boolean containsKey(long key)
containsKey in interface LongIntSortedMapMap.containsKey(java.lang.Object)public int get(long key)
get in interface LongIntSortedMapMap.get(java.lang.Object)public int put(long key,
int value)
put in interface LongIntSortedMapMap.put(java.lang.Object, java.lang.Object)public int remove(long key)
remove in interface LongIntSortedMapMap.remove(java.lang.Object)public int remove(long key,
int val)
remove in interface LongIntSortedMappublic long firstKey()
firstKey in interface LongIntSortedMapSortedMap.firstKey()public long lastKey()
lastKey in interface LongIntSortedMapSortedMap.lastKey()public LiteralIterator keyIterator()
keyIterator in interface LongIntSortedMappublic LiteralIterator keyRangeIterator(long fromKey, boolean fromInc, long toKey, boolean toInc)
keyRangeIterator in interface LongIntSortedMappublic IntIterator valueRangeIterator(long fromKey, boolean fromInc, long toKey, boolean toInc)
valueRangeIterator in interface LongIntSortedMapprotected int compare(AbstractTreeMap.Entry e1, AbstractTreeMap.Entry e2)
compare in class AbstractTreeMap