de.greenrobot.dao
Class LongHashMap

java.lang.Object
  extended by de.greenrobot.dao.LongHashMap
Type Parameters:
T - The class to store.

public final class LongHashMap
extends java.lang.Object

    

An minimalistic hash map optimized for long keys.


Constructor Summary
LongHashMap()
           
LongHashMap(int capacity)
           
 
Method Summary
 void clear()
           
 boolean containsKey(long key)
           
 T get(long key)
           
 void logStats()
           
 T put(long key, T value)
           
 T remove(long key)
           
 void reserveRoom(int entryCount)
          Target load: 0,6
 void setCapacity(int newCapacity)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongHashMap

public LongHashMap()

LongHashMap

public LongHashMap(int capacity)
Method Detail

containsKey

public boolean containsKey(long key)

get

public T get(long key)

put

public T put(long key,
             T value)

remove

public T remove(long key)

clear

public void clear()

size

public int size()

setCapacity

public void setCapacity(int newCapacity)

reserveRoom

public void reserveRoom(int entryCount)
Target load: 0,6


logStats

public void logStats()


Copyright © 2011-2012 greenrobot.de. All Rights Reserved.