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, valueIterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparator, containsValue, getMaximum, getMedian, getMinimum, getUniqueCount, isAllowDuplicates, isEmpty, size, valueIterator
public LongIntTreeMap()
public LongIntTreeMap(boolean allowDuplicates)
public LongIntTreeMap(LiteralComparator comparator)
public LongIntTreeMap(LiteralComparator comparator, boolean allowDuplicates)
public void clear()
clear
in interface IntSortedMap
clear
in class AbstractTreeMap
Map.clear()
public boolean containsKey(long key)
containsKey
in interface LongIntSortedMap
Map.containsKey(java.lang.Object)
public int get(long key)
get
in interface LongIntSortedMap
Map.get(java.lang.Object)
public int put(long key, int value)
put
in interface LongIntSortedMap
Map.put(java.lang.Object, java.lang.Object)
public int remove(long key)
remove
in interface LongIntSortedMap
Map.remove(java.lang.Object)
public int remove(long key, int val)
remove
in interface LongIntSortedMap
public long firstKey()
firstKey
in interface LongIntSortedMap
SortedMap.firstKey()
public long lastKey()
lastKey
in interface LongIntSortedMap
SortedMap.lastKey()
public LiteralIterator keyIterator()
keyIterator
in interface LongIntSortedMap
public LiteralIterator keyRangeIterator(long fromKey, boolean fromInc, long toKey, boolean toInc)
keyRangeIterator
in interface LongIntSortedMap
public IntIterator valueRangeIterator(long fromKey, boolean fromInc, long toKey, boolean toInc)
valueRangeIterator
in interface LongIntSortedMap
protected int compare(AbstractTreeMap.Entry e1, AbstractTreeMap.Entry e2)
compare
in class AbstractTreeMap
Copyright ? 2013 Regents of the University of California