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