| 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents maps from float values to char values. It is not possible to obtain a set of entries from primitive collections maps. Instead, an iterator over entries can be obtained. This removes a number of implementation constraints imposed by having to implement an entry interface.
FloatKeyCharMapIterator, 
Map| Method Summary | |
 void | 
clear()
Clears this map.  | 
 boolean | 
containsKey(float key)
Indicates whether this map contains a mapping from a specified key.  | 
 boolean | 
containsValue(char value)
Indicates whether this map contains a mapping to a specified value.  | 
 FloatKeyCharMapIterator | 
entries()
Returns an iterator over the entries of this map.  | 
 boolean | 
equals(Object obj)
Indicates whether this map is equal to some object.  | 
 char | 
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.  | 
 FloatSet | 
keySet()
Returns a set view of the keys of this map.  | 
 char | 
lget()
Returns the last value corresponding to a positive result from containsKey(float).  | 
 char | 
put(float key,
    char value)
Adds a mapping from a specified key to a specified value to this map.  | 
 void | 
putAll(FloatKeyCharMap map)
Adds all mappings from a specified map to this map.  | 
 char | 
remove(float key)
Removes the mapping from a specified key from this map.  | 
 int | 
size()
Returns the size of this map.  | 
 char | 
tget(float key)
Maps a specified key to a value.  | 
 void | 
trimToSize()
Minimizes the memory used by this map.  | 
 CharCollection | 
values()
Returns a collection view of the values in this map.  | 
| Method Detail | 
public void clear()
UnsupportedOperationException - if the operation is not supported by this map.public boolean containsKey(float key)
lget() will return the corresponding value.
key - the key to test for.
lget()public boolean containsValue(char value)
value - the value to test for.
public FloatKeyCharMapIterator entries()
public boolean equals(Object obj)
obj - the object with which to compare this map.
public char get(float key)
key - the key to map to a value.
MapDefaults, 
tget(float), 
lget()public int hashCode()
public boolean isEmpty()
public FloatSet keySet()
public char lget()
containsKey(float). This is useful
  for checking checking the existence of a mapping while
  avoiding two lookups on the same key.
containsKey(float).
IllegalStateException - if containsKey(float) has
              not been called or the last call resulted in
              a return value of false.get(float), 
tget(float), 
containsKey(float)
public char put(float key,
                char value)
key - the key of the mapping to add to this map.value - the value of the mapping to add to this map.
UnsupportedOperationException - if the operation is not supported by this map.MapDefaultspublic void putAll(FloatKeyCharMap map)
map - the map whose mappings to add to this map.
NullPointerException - if map is null.
UnsupportedOperationException - if the operation is not supported by this map.public char remove(float key)
key - the key whose mapping to remove from this map.
UnsupportedOperationException - if the operation is not supported by this map.MapDefaultspublic int size()
public char tget(float key)
key - the key to map to a value.
NoSuchMappingException - if the specified key does not map to any value.get(float), 
lget()public void trimToSize()
public CharCollection values()
  | 
PCJ API Version 1.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||