com.sibvisions.util
Class IntHashMap<T>

java.lang.Object
  extended by com.sibvisions.util.IntHashMap<T>
Type Parameters:
T - any Object.

public final class IntHashMap<T>
extends java.lang.Object

The IntHashMap is a very efficient int hash map.


Constructor Summary
IntHashMap()
          Creates a new instance of IntHashMap.
 
Method Summary
 void clear()
          Clears the interned objects.
 T get(int pKey)
          Gets the value for key.
 T put(int pKey, T pValue)
          Puts the value for the given key.
 T remove(int pKey)
          Removes the key.
 int size()
          Gets the amount of internalized objects.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntHashMap

public IntHashMap()
Creates a new instance of IntHashMap.

Method Detail

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

clear

public void clear()
Clears the interned objects.


size

public int size()
Gets the amount of internalized objects.

Returns:
the amount of internalized objects.

put

public T put(int pKey,
             T pValue)
Puts the value for the given key.

Parameters:
pKey - the key.
pValue - the value.
Returns:
the old value.

get

public T get(int pKey)
Gets the value for key.

Parameters:
pKey - the key
Returns:
the value

remove

public T remove(int pKey)
Removes the key.

Parameters:
pKey - the key
Returns:
the removed value


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.