|
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 boolean values to objects.
Map
Method Summary | |
void |
clear()
Clears this map. |
boolean |
containsKey(boolean key)
Indicates whether this map contains a mapping from a specified key. |
boolean |
containsValue(Object value)
Indicates whether this map contains a mapping to a specified value. |
BooleanKeyMapIterator |
entries()
Returns an iterator over the entries of this map. |
boolean |
equals(Object obj)
Indicates whether this map is equal to some object. |
Object |
get(boolean 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. |
BooleanSet |
keySet()
Returns a set view of the keys of this map. |
Object |
put(boolean key,
Object value)
Adds a mapping from a specified key to a specified value to this map. |
void |
putAll(BooleanKeyMap map)
Adds all mappings from a specified map to this map. |
Object |
remove(boolean key)
Removes the mapping from a specified key from this map. |
int |
size()
Returns the size of this map. |
Collection |
values()
Returns a collection view of the values in this map. |
Method Detail |
public void clear()
public boolean containsKey(boolean key)
key
- the key to test for.
public boolean containsValue(Object value)
value
- the value to test for.
public BooleanKeyMapIterator entries()
public boolean equals(Object obj)
obj
- the object with which to compare this map.
public Object get(boolean key)
key
- the key to map to a value.
public int hashCode()
public boolean isEmpty()
public BooleanSet keySet()
public Object put(boolean key, Object 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.public void putAll(BooleanKeyMap 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 Object remove(boolean key)
key
- the key whose mapping to remove from this map.
UnsupportedOperationException
- if the operation is not supported by this map.public int size()
public Collection values()
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |