| java.lang.Object bak.pcj.map.AbstractShortKeyByteMap
All known Subclasses: bak.pcj.adapter.MapToShortKeyByteMapAdapter, bak.pcj.map.ShortKeyByteOpenHashMap, bak.pcj.map.ShortKeyByteChainedHashMap,
AbstractShortKeyByteMap | abstract public class AbstractShortKeyByteMap implements ShortKeyByteMap(Code) | | This class represents an abstract base for implementing
maps from short 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.
author: Søren Bak version: 1.4 21-08-2003 19:34 since: 1.0 |
AbstractShortKeyByteMap | protected AbstractShortKeyByteMap()(Code) | | Default constructor to be invoked by sub-classes.
|
clear | public void clear()(Code) | | |
containsKey | public boolean containsKey(short key)(Code) | | |
containsValue | public boolean containsValue(byte value)(Code) | | |
get | public byte get(short key)(Code) | | |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
remove | public byte remove(short key)(Code) | | |
tget | public byte tget(short key)(Code) | | |
toString | public String toString()(Code) | | Returns a string representation of this map.
a string representation of this map. |
trimToSize | public void trimToSize()(Code) | | Does nothing. Sub-classes may provide an implementation to
minimize memory usage, but this is not required since many
implementations will always have minimal memory usage.
|
|
|