|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbak.pcj.map.AbstractFloatKeyLongMap
This class represents an abstract base for implementing maps from float values to long values. All operations that can be implemented using iterators are implemented as such. In most cases, this is hardly an efficient solution, and at least some of those methods should be overridden by sub-classes.
| Constructor Summary | |
protected |
AbstractFloatKeyLongMap()
Default constructor to be invoked by sub-classes. |
| Method Summary | |
void |
clear()
Clears this map. |
boolean |
containsKey(float key)
Indicates whether this map contains a mapping from a specified key. |
boolean |
containsValue(long value)
Indicates whether this map contains a mapping to a specified value. |
boolean |
equals(Object obj)
Indicates whether this map is equal to some object. |
long |
get(float key)
Maps a specified key to a value. |
int |
hashCode()
Returns a hash code value for this map. |
boolean |
isEmpty()
Indicates whether this map is empty. |
void |
putAll(FloatKeyLongMap map)
Adds all mappings from a specified map to this map. |
long |
remove(float key)
Removes the mapping from a specified key from this map. |
int |
size()
Returns the size of this map. |
long |
tget(float key)
Maps a specified key to a value. |
String |
toString()
Returns a string representation of this map. |
void |
trimToSize()
Does nothing. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface bak.pcj.map.FloatKeyLongMap |
entries, keySet, lget, put, values |
| Constructor Detail |
protected AbstractFloatKeyLongMap()
| Method Detail |
public void clear()
FloatKeyLongMap
clear in interface FloatKeyLongMappublic long remove(float key)
FloatKeyLongMap
remove in interface FloatKeyLongMapkey - the key whose mapping to remove from this map.
MapDefaultspublic void putAll(FloatKeyLongMap map)
FloatKeyLongMap
putAll in interface FloatKeyLongMapmap - the map whose mappings to add to this map.public boolean containsKey(float key)
FloatKeyLongMaplget() will return the corresponding value.
containsKey in interface FloatKeyLongMapkey - the key to test for.
FloatKeyLongMap.lget()public long get(float key)
FloatKeyLongMap
get in interface FloatKeyLongMapkey - the key to map to a value.
MapDefaults,
FloatKeyLongMap.tget(float),
FloatKeyLongMap.lget()public boolean containsValue(long value)
FloatKeyLongMap
containsValue in interface FloatKeyLongMapvalue - the value to test for.
public boolean equals(Object obj)
FloatKeyLongMap
equals in interface FloatKeyLongMappublic int hashCode()
FloatKeyLongMap
hashCode in interface FloatKeyLongMappublic boolean isEmpty()
FloatKeyLongMap
isEmpty in interface FloatKeyLongMappublic int size()
FloatKeyLongMap
size in interface FloatKeyLongMappublic long tget(float key)
FloatKeyLongMap
tget in interface FloatKeyLongMapkey - the key to map to a value.
FloatKeyLongMap.get(float),
FloatKeyLongMap.lget()public String toString()
public void trimToSize()
trimToSize in interface FloatKeyLongMap
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||