|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.util.MultipleValueMap
public class MultipleValueMap
Map supporting multiple values for a single key. The multiple value concept doesn't really fit with the standard collections idea of a map, so this provides its own variation of a map interface rather than extend the standard one.
| Nested Class Summary | |
|---|---|
class |
MultipleValueMap.MultipleIterator
Iterator for only the multiple-valued keys in the map. |
| Constructor Summary | |
|---|---|
MultipleValueMap()
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleValueMap()
| Method Detail |
|---|
public void clear()
public int getCount(Object key)
key -
public Object get(Object key,
int index)
key - index -
public void add(Object key,
Object value)
key - value - public ArrayList get(Object key)
key -
public ArrayList extract(Object key)
key -
public int keySize()
public int valueSize()
public Iterator multipleIterator()
public boolean containsKey(Object key)
key -
public boolean isEmpty()
public Set keySet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||