|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
org.hypergraphdb.util.LinkedIdentityHashMap<K,V>
public class LinkedIdentityHashMap<K,V>
| Constructor Summary | |
|---|---|
LinkedIdentityHashMap()
Constructs an empty insertion-ordered LinkedIdentityHashMap instance with a default capacity (16) and load factor (0.75). |
|
LinkedIdentityHashMap(int initialCapacity)
Constructs an empty insertion-ordered LinkedIdentityHashMap instance with the specified initial capacity and a default load factor (0.75). |
|
LinkedIdentityHashMap(int initialCapacity,
float loadFactor)
Constructs an empty insertion-ordered LinkedIdentityHashMap instance with the specified initial capacity and load factor. |
|
LinkedIdentityHashMap(int initialCapacity,
float loadFactor,
boolean accessOrder)
Constructs an empty LinkedIdentityHashMap instance with the specified initial capacity, load factor and ordering mode. |
|
LinkedIdentityHashMap(java.util.Map<? extends K,? extends V> m)
Constructs an insertion-ordered LinkedIdentityHashMap instance with the same mappings as the specified map. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all mappings from this map. |
java.lang.Object |
clone()
Returns a shallow copy of this MyIdentityHashMap instance: the keys and values themselves are not cloned. |
boolean |
containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(java.lang.Object value)
Returns true if this map maps one or more keys to the specified value. |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
Returns a collection view of the mappings contained in this map. |
V |
get(java.lang.Object key)
Returns the value to which this map maps the specified key. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
java.util.Set<K> |
keySet()
Returns a set view of the keys contained in this map. |
V |
put(K key,
V value)
Associates the specified value with the specified key in this map. |
void |
putAll(java.util.Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this map These mappings will replace any mappings that this map had for any of the keys currently in the specified map. |
V |
remove(java.lang.Object key)
Removes the mapping for this key from this map if present. |
int |
size()
Returns the number of key-value mappings in this map. |
java.util.Collection<V> |
values()
Returns a collection view of the values contained in this map. |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public LinkedIdentityHashMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity.loadFactor - the load factor.
java.lang.IllegalArgumentException - if the initial capacity is negative
or the load factor is nonpositive.public LinkedIdentityHashMap(int initialCapacity)
initialCapacity - the initial capacity.
java.lang.IllegalArgumentException - if the initial capacity is negative.public LinkedIdentityHashMap()
public LinkedIdentityHashMap(java.util.Map<? extends K,? extends V> m)
m - the map whose mappings are to be placed in this map.
java.lang.NullPointerException - if the specified map is null.
public LinkedIdentityHashMap(int initialCapacity,
float loadFactor,
boolean accessOrder)
initialCapacity - the initial capacity.loadFactor - the load factor.accessOrder - the ordering mode - true for
access-order, false for insertion-order.
java.lang.IllegalArgumentException - if the initial capacity is negative
or the load factor is nonpositive.| Method Detail |
|---|
public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<K,V>value - value whose presence in this map is to be tested.
public V get(java.lang.Object key)
get in interface java.util.Map<K,V>key - key whose associated value is to be returned.
put(Object, Object)public void clear()
clear in interface java.util.Map<K,V>public int size()
size in interface java.util.Map<K,V>size in class java.util.AbstractMap<K,V>public boolean isEmpty()
isEmpty in interface java.util.Map<K,V>isEmpty in class java.util.AbstractMap<K,V>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<K,V>containsKey in class java.util.AbstractMap<K,V>key - The key whose presence in this map is to be tested
public V put(K key,
V value)
put in interface java.util.Map<K,V>put in class java.util.AbstractMap<K,V>key - key with which the specified value is to be associated.value - value to be associated with the specified key.
public void putAll(java.util.Map<? extends K,? extends V> m)
putAll in interface java.util.Map<K,V>putAll in class java.util.AbstractMap<K,V>m - mappings to be stored in this map.
java.lang.NullPointerException - if the specified map is null.public V remove(java.lang.Object key)
remove in interface java.util.Map<K,V>remove in class java.util.AbstractMap<K,V>key - key whose mapping is to be removed from the map.
public java.lang.Object clone()
clone in class java.util.AbstractMap<K,V>public java.util.Set<K> keySet()
keySet in interface java.util.Map<K,V>keySet in class java.util.AbstractMap<K,V>public java.util.Collection<V> values()
values in interface java.util.Map<K,V>values in class java.util.AbstractMap<K,V>public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
entrySet in interface java.util.Map<K,V>entrySet in class java.util.AbstractMap<K,V>Map.Entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||