jlibs.core.util
Class LongTreeMap<V>

java.lang.Object
  extended by 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

Nested Class Summary
static class LongTreeMap.Entry<V>
           
 
Constructor Summary
LongTreeMap()
           
 
Method Summary
 void clear()
           
 void deleteEntry(LongTreeMap.Entry<V> p)
           
 LongTreeMap.Entry<V> firstEntry()
           
 V get(long key)
           
 LongTreeMap.Entry<V> getEntry(long key)
           
 boolean isEmpty()
           
 LongTreeMap.Entry<V> lastEntry()
           
static void main(String[] args)
           
 V put(long key, V value)
           
 void putAll(LongTreeMap<? extends V> map)
           
 V remove(long key)
           
 int size()
           
 Collection<V> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongTreeMap

public LongTreeMap()
Method Detail

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.