public class MultipleValueMap extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MultipleValueMap.MultipleIterator
Iterator for only the multiple-valued keys in the map.
|
| Constructor and Description |
|---|
MultipleValueMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object key,
Object value)
Add value for key.
|
void |
clear()
Clear all entries.
|
boolean |
containsKey(Object key)
Check key present in map.
|
ArrayList |
extract(Object key)
Extract all values for key.
|
ArrayList |
get(Object key)
Get all values for key.
|
Object |
get(Object key,
int index)
Get indexed value for key.
|
int |
getCount(Object key)
Get number of values present for key.
|
boolean |
isEmpty()
Check if map is empty.
|
Set |
keySet()
Get key set.
|
int |
keySize()
Get number of keys.
|
Iterator |
multipleIterator()
Get iterator over only the multiple-valued keys present in the map.
|
int |
valueSize()
Get number of values.
|
public void clear()
public int getCount(Object key)
key - Keypublic Object get(Object key, int index)
key - Keyindex - Indexpublic void add(Object key, Object value)
key - Keyvalue - Valuepublic ArrayList get(Object key)
key - Keypublic ArrayList extract(Object key)
key - Keypublic int keySize()
public int valueSize()
public Iterator multipleIterator()
public boolean containsKey(Object key)
key - Keypublic boolean isEmpty()
public Set keySet()
Copyright © 2005–2016 jibx.org. All rights reserved.