void
|
addEntry(AbstractHashedMap.HashEntry entry, int hashIndex)
Adds an entry into this map.
|
void
|
addMapping(int hashIndex, int hashCode, Object key, Object value)
Adds a new key-value mapping into this map.
|
int
|
calculateNewCapacity(int proposedCapacity)
Calculates the new capacity of the map.
|
int
|
calculateThreshold(int newCapacity, float factor)
Calculates the new threshold of the map, where it will be resized.
|
void
|
checkCapacity()
Checks the capacity of the map and enlarges it if necessary.
|
void
|
clear()
Clears the map, resetting the size to zero and nullifying references
to avoid garbage collection issues.
|
Object
|
clone()
Clones the map without cloning the keys or values.
|
boolean
|
containsKey(Object key)
Checks whether the map contains the specified key.
|
boolean
|
containsValue(Object value)
Checks whether the map contains the specified value.
|
Object
|
convertKey(Object key)
Converts input keys to another object for storage in the map.
|
AbstractHashedMap.HashEntry
|
createEntry(AbstractHashedMap.HashEntry next, int hashCode, Object key, Object value)
Creates an entry to store the key-value data.
|
Iterator
|
createEntrySetIterator()
Creates an entry set iterator.
|
Iterator
|
createKeySetIterator()
Creates a key set iterator.
|
Iterator
|
createValuesIterator()
Creates a values iterator.
|
void
|
destroyEntry(AbstractHashedMap.HashEntry entry)
Kills an entry ready for the garbage collector.
|
void
|
doReadObject(ObjectInputStream in)
Reads the map data from the stream.
|
void
|
doWriteObject(ObjectOutputStream out)
Writes the map data to the stream.
|
void
|
ensureCapacity(int newCapacity)
Changes the size of the data structure to the capacity proposed.
|
int
|
entryHashCode(AbstractHashedMap.HashEntry entry)
Gets the hashCode field from a HashEntry .
|
Object
|
entryKey(AbstractHashedMap.HashEntry entry)
Gets the key field from a HashEntry .
|
AbstractHashedMap.HashEntry
|
entryNext(AbstractHashedMap.HashEntry entry)
Gets the next field from a HashEntry .
|
Set
|
entrySet()
Gets the entrySet view of the map.
|
Object
|
entryValue(AbstractHashedMap.HashEntry entry)
Gets the value field from a HashEntry .
|
boolean
|
equals(Object obj)
Compares this map with another.
|
Object
|
get(Object key)
Gets the value mapped to the key specified.
|
AbstractHashedMap.HashEntry
|
getEntry(Object key)
Gets the entry mapped to the key specified.
|
int
|
hash(Object key)
Gets the hash code for the key specified.
|
int
|
hashCode()
Gets the standard Map hashCode.
|
int
|
hashIndex(int hashCode, int dataSize)
Gets the index into the data storage for the hashCode specified.
|
void
|
init()
Initialise subclasses during construction, cloning or deserialization.
|
boolean
|
isEmpty()
Checks whether the map is currently empty.
|
boolean
|
isEqualKey(Object key1, Object key2)
Compares two keys, in internal converted form, to see if they are equal.
|
boolean
|
isEqualValue(Object value1, Object value2)
Compares two values, in external form, to see if they are equal.
|
Set
|
keySet()
Gets the keySet view of the map.
|
MapIterator
|
mapIterator()
Gets an iterator over the map.
|
Object
|
put(Object key, Object value)
Puts a key-value mapping into this map.
|
void
|
putAll(Map map)
Puts all the values from the specified map into this map.
|
Object
|
remove(Object key)
Removes the specified mapping from this map.
|
void
|
removeEntry(AbstractHashedMap.HashEntry entry, int hashIndex, AbstractHashedMap.HashEntry previous)
Removes an entry from the chain stored in a particular index.
|
void
|
removeMapping(AbstractHashedMap.HashEntry entry, int hashIndex, AbstractHashedMap.HashEntry previous)
Removes a mapping from the map.
|
void
|
reuseEntry(AbstractHashedMap.HashEntry entry, int hashIndex, int hashCode, Object key, Object value)
Reuses an existing key-value mapping, storing completely new data.
|
int
|
size()
Gets the size of the map.
|
String
|
toString()
Gets the map as a String.
|
void
|
updateEntry(AbstractHashedMap.HashEntry entry, Object newValue)
Updates an existing key-value mapping to change the value.
|
Collection
|
values()
Gets the values view of the map.
|