public class HashMapList
extends java.lang.Object
Constructor | Description |
---|---|
HashMapList() |
Constructs the map.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List |
clear(java.lang.Object key) |
Clears the all the values for the given key.
|
boolean |
containsKey(java.lang.Object key) |
Returns true if the map contains the key.
|
java.util.List |
get(java.lang.Object key) |
Returns the list of values that are in the map under this key.
|
java.util.Set |
keySet() |
The Set of all keys.
|
void |
put(java.lang.Object key,
java.lang.Object val) |
Puts a value into the map list.
|
boolean |
remove(java.lang.Object key,
java.lang.Object val) |
Removes the given value from the list with the given key.
|
public void put(java.lang.Object key, java.lang.Object val)
public java.util.List get(java.lang.Object key)
public boolean remove(java.lang.Object key, java.lang.Object val)
public java.util.List clear(java.lang.Object key)
public java.util.Set keySet()
public boolean containsKey(java.lang.Object key)
Copyright © 2018. All rights reserved.