jlibs.core.util
Class LongTreeMap<V>
java.lang.Object
jlibs.core.util.LongTreeMap<V>
public final class LongTreeMap<V>
- extends Object
Optimized TreeMap implementation whose keys are primitive long.
Originally copied from java.util.TreeMap and Optimized further
- Author:
- Santhosh Kumar T
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongTreeMap
public LongTreeMap()
firstEntry
public LongTreeMap.Entry<V> firstEntry()
lastEntry
public LongTreeMap.Entry<V> lastEntry()
size
public int size()
isEmpty
public boolean isEmpty()
put
public V put(long key,
V value)
deleteEntry
public void deleteEntry(LongTreeMap.Entry<V> p)
remove
public V remove(long key)
clear
public void clear()
putAll
public void putAll(LongTreeMap<? extends V> map)
getEntry
public LongTreeMap.Entry<V> getEntry(long key)
get
public V get(long key)
values
public Collection<V> values()
main
public static void main(String[] args)
Copyright © 2018. All rights reserved.