| org.apache.harmony.luni.util.TwoKeyHashMap
TwoKeyHashMap | public class TwoKeyHashMap extends AbstractMap (Code) | | Reductive hash with two keys
|
Inner Class :class EntrySetImpl extends AbstractSet> | |
Inner Class :class ValuesCollectionImpl extends AbstractCollection | |
Inner Class :class ValueIteratorImpl implements Iterator<V> | |
Method Summary | |
public void | clear() | public boolean | containsKey(Object key1, Object key2) Answers whether this map contains a mapping for the specified keys. | Entry<E, K, V> | createEntry(int hashCode, E key1, K key2, V value, Entry<E, K, V> next) | Iterator<Map.Entry<String, V>> | createEntrySetIterator() | Iterator<V> | createValueCollectionIterator() | public Set<Map.Entry<String, V>> | entrySet() | public V | get(Object key1, Object key2) | public boolean | isEmpty() | public V | put(E key1, K key2, V value) | void | rehash() | public V | remove(Object key1, Object key2) | public int | size() | public Collection<V> | values() |
DEFAULT_INITIAL_SIZE | final static int DEFAULT_INITIAL_SIZE(Code) | | |
DEFAULT_LOAD_FACTOR | final static float DEFAULT_LOAD_FACTOR(Code) | | |
TwoKeyHashMap | public TwoKeyHashMap()(Code) | | Constructs an empty HashMap
|
TwoKeyHashMap | public TwoKeyHashMap(int initialCapacity)(Code) | | Constructs an empty HashMap
Parameters: initialCapacity - |
TwoKeyHashMap | public TwoKeyHashMap(int initialCapacity, float initialLoadFactor)(Code) | | Constructs an empty HashMap
Parameters: initialCapacity - Parameters: initialLoadFactor - |
clear | public void clear()(Code) | | Clears the map
|
containsKey | public boolean containsKey(Object key1, Object key2)(Code) | | Answers whether this map contains a mapping for the specified keys.
Parameters: key1 - first key Parameters: key2 - second key true if this map contains a mapping for the specified keys, andfalse otherwise. |
createEntry | Entry<E, K, V> createEntry(int hashCode, E key1, K key2, V value, Entry<E, K, V> next)(Code) | | Creates new entry
Parameters: hashCode - Parameters: key1 - Parameters: key2 - Parameters: value - Parameters: next - |
createValueCollectionIterator | Iterator<V> createValueCollectionIterator()(Code) | | Creates values iterator
|
get | public V get(Object key1, Object key2)(Code) | | Return the value by keys
Parameters: key1 - Parameters: key2 - |
isEmpty | public boolean isEmpty()(Code) | | Returns true if this map contains no key-value mappings
|
put | public V put(E key1, K key2, V value)(Code) | | Associates the specified value with the specified keys in this map
Parameters: key1 - Parameters: key2 - Parameters: value - |
rehash | void rehash()(Code) | | Rehash the map
|
remove | public V remove(Object key1, Object key2)(Code) | | Removes the mapping for the keys
Parameters: key1 - Parameters: key2 - |
size | public int size()(Code) | | Returns the number of mappings
|
values | public Collection<V> values()(Code) | | Returns a collection view of the values
|
|
|