|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bak.pcj.map.AbstractIntKeyByteMap
This class represents an abstract base for implementing maps from int values to byte 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 |
AbstractIntKeyByteMap()
Default constructor to be invoked by sub-classes. |
Method Summary | |
void |
clear()
Clears this map. |
boolean |
containsKey(int key)
Indicates whether this map contains a mapping from a specified key. |
boolean |
containsValue(byte 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. |
byte |
get(int 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(IntKeyByteMap map)
Adds all mappings from a specified map to this map. |
byte |
remove(int key)
Removes the mapping from a specified key from this map. |
int |
size()
Returns the size of this map. |
byte |
tget(int 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.IntKeyByteMap |
entries, keySet, lget, put, values |
Constructor Detail |
protected AbstractIntKeyByteMap()
Method Detail |
public void clear()
IntKeyByteMap
clear
in interface IntKeyByteMap
public byte remove(int key)
IntKeyByteMap
remove
in interface IntKeyByteMap
key
- the key whose mapping to remove from this map.
MapDefaults
public void putAll(IntKeyByteMap map)
IntKeyByteMap
putAll
in interface IntKeyByteMap
map
- the map whose mappings to add to this map.public boolean containsKey(int key)
IntKeyByteMap
lget()
will return the corresponding value.
containsKey
in interface IntKeyByteMap
key
- the key to test for.
IntKeyByteMap.lget()
public byte get(int key)
IntKeyByteMap
get
in interface IntKeyByteMap
key
- the key to map to a value.
MapDefaults
,
IntKeyByteMap.tget(int)
,
IntKeyByteMap.lget()
public boolean containsValue(byte value)
IntKeyByteMap
containsValue
in interface IntKeyByteMap
value
- the value to test for.
public boolean equals(Object obj)
IntKeyByteMap
equals
in interface IntKeyByteMap
public int hashCode()
IntKeyByteMap
hashCode
in interface IntKeyByteMap
public boolean isEmpty()
IntKeyByteMap
isEmpty
in interface IntKeyByteMap
public int size()
IntKeyByteMap
size
in interface IntKeyByteMap
public byte tget(int key)
IntKeyByteMap
tget
in interface IntKeyByteMap
key
- the key to map to a value.
IntKeyByteMap.get(int)
,
IntKeyByteMap.lget()
public String toString()
public void trimToSize()
trimToSize
in interface IntKeyByteMap
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |