public class LinkedMap extends HashMap
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LinkedMap.Entry |
protected class |
LinkedMap.EntrySet |
HashMap.AbstractMapIterator| Constructor and Description |
|---|
LinkedMap()
Constructor.
|
LinkedMap(boolean accessOrdering)
Constructor.
|
LinkedMap(HashMap m)
Constructor will create a clone of the specified map.
|
LinkedMap(int initialCapacity)
Constructor with initial capacity to specify.
|
LinkedMap(int initialCapacity,
boolean accessOrdering)
Constructor with initial capacity to specify.
|
| Modifier and Type | Method and Description |
|---|---|
protected HashMap.Entry |
addEntry(int bucketIndex,
int hash,
java.lang.Object key,
java.lang.Object value) |
void |
clear() |
boolean |
containsValue(java.lang.Object value) |
protected HashMap.Entry |
createEntry(int hash,
java.lang.Object key,
java.lang.Object value,
HashMap.Entry next) |
Set |
entrySet() |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get(int index) |
java.lang.Object |
get(java.lang.Object key)
Get associated value to given key.
|
int |
hashCode() |
Set |
keySet() |
java.lang.Object |
remove(int index) |
protected void |
removeEntry(int bucketIndex,
HashMap.Entry entry) |
java.lang.Object |
removeFirst() |
java.lang.Object |
removeLast() |
DataStructure |
values() |
public LinkedMap()
public LinkedMap(boolean accessOrdering)
true, then accessing entries by the get()-method
will moved it to the end of the iterator sequences.accessOrdering - public LinkedMap(int initialCapacity)
initialCapacity - initial capacity to reservepublic LinkedMap(int initialCapacity,
boolean accessOrdering)
true, then
accessing entries by the get()-method will moved it to the end of the iterator sequences.initialCapacity - initial capacity to reserveaccessOrdering - public LinkedMap(HashMap m)
m - map to clone.protected HashMap.Entry addEntry(int bucketIndex, int hash, java.lang.Object key, java.lang.Object value)
protected HashMap.Entry createEntry(int hash, java.lang.Object key, java.lang.Object value, HashMap.Entry next)
createEntry in class HashMapprotected void removeEntry(int bucketIndex,
HashMap.Entry entry)
removeEntry in class HashMappublic boolean containsValue(java.lang.Object value)
containsValue in class HashMappublic java.lang.Object get(java.lang.Object key)
HashMapnull will always return null
;public java.lang.Object get(int index)
public java.lang.Object remove(int index)
public java.lang.Object removeFirst()
public java.lang.Object removeLast()
public DataStructure values()