org.ontobox.fast.util.primitive.impl.standard
Class StdLongObjectMap<T>

java.lang.Object
  extended by org.ontobox.fast.util.primitive.impl.standard.StdLongObjectMap<T>
All Implemented Interfaces:
LongObjectMap<T>

public class StdLongObjectMap<T>
extends java.lang.Object
implements LongObjectMap<T>

Author:
Anton Malykh

Constructor Summary
StdLongObjectMap(int size)
           
 
Method Summary
 void clear()
           
 boolean forEachEntry(LongObjectProcessor<T> processor)
           
 boolean forEachValue(ObjectProcessor<T> processor)
           
 T get(long key)
           
 boolean isEmpty()
           
 long[] keys()
           
 void put(long key, T value)
           
 void removeKey(long key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdLongObjectMap

public StdLongObjectMap(int size)
Method Detail

clear

public final void clear()
Specified by:
clear in interface LongObjectMap<T>

get

public final T get(long key)
Specified by:
get in interface LongObjectMap<T>

removeKey

public final void removeKey(long key)
Specified by:
removeKey in interface LongObjectMap<T>

put

public final void put(long key,
                      T value)
Specified by:
put in interface LongObjectMap<T>

size

public final int size()
Specified by:
size in interface LongObjectMap<T>

isEmpty

public final boolean isEmpty()
Specified by:
isEmpty in interface LongObjectMap<T>

forEachEntry

public final boolean forEachEntry(LongObjectProcessor<T> processor)
Specified by:
forEachEntry in interface LongObjectMap<T>

forEachValue

public final boolean forEachValue(ObjectProcessor<T> processor)
Specified by:
forEachValue in interface LongObjectMap<T>

keys

public final long[] keys()
Specified by:
keys in interface LongObjectMap<T>