|
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.AbstractFloatKeyBooleanMap
This class represents an abstract base for implementing maps from float values to boolean 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 |
AbstractFloatKeyBooleanMap()
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(boolean 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. |
boolean |
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(FloatKeyBooleanMap map)
Adds all mappings from a specified map to this map. |
boolean |
remove(float key)
Removes the mapping from a specified key from this map. |
int |
size()
Returns the size of this map. |
boolean |
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.FloatKeyBooleanMap |
entries, keySet, lget, put, values |
| Constructor Detail |
protected AbstractFloatKeyBooleanMap()
| Method Detail |
public void clear()
FloatKeyBooleanMap
clear in interface FloatKeyBooleanMappublic boolean remove(float key)
FloatKeyBooleanMap
remove in interface FloatKeyBooleanMapkey - the key whose mapping to remove from this map.
MapDefaultspublic void putAll(FloatKeyBooleanMap map)
FloatKeyBooleanMap
putAll in interface FloatKeyBooleanMapmap - the map whose mappings to add to this map.public boolean containsKey(float key)
FloatKeyBooleanMaplget() will return the corresponding value.
containsKey in interface FloatKeyBooleanMapkey - the key to test for.
FloatKeyBooleanMap.lget()public boolean get(float key)
FloatKeyBooleanMap
get in interface FloatKeyBooleanMapkey - the key to map to a value.
MapDefaults,
FloatKeyBooleanMap.tget(float),
FloatKeyBooleanMap.lget()public boolean containsValue(boolean value)
FloatKeyBooleanMap
containsValue in interface FloatKeyBooleanMapvalue - the value to test for.
public boolean equals(Object obj)
FloatKeyBooleanMap
equals in interface FloatKeyBooleanMappublic int hashCode()
FloatKeyBooleanMap
hashCode in interface FloatKeyBooleanMappublic boolean isEmpty()
FloatKeyBooleanMap
isEmpty in interface FloatKeyBooleanMappublic int size()
FloatKeyBooleanMap
size in interface FloatKeyBooleanMappublic boolean tget(float key)
FloatKeyBooleanMap
tget in interface FloatKeyBooleanMapkey - the key to map to a value.
FloatKeyBooleanMap.get(float),
FloatKeyBooleanMap.lget()public String toString()
public void trimToSize()
trimToSize in interface FloatKeyBooleanMap
|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||