|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap com.jidesoft.grid.MultiValuedMap
public class MultiValuedMap
A multi valued Map. This Map specializes HashMap and provides methods that operate on multi valued items.
Implemented as a map of LazyList values
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
MultiValuedMap()
Constructor. |
|
MultiValuedMap(int size)
Constructor. |
|
MultiValuedMap(Map map)
Constructor. |
Method Summary | |
---|---|
List |
add(Object name,
Object value)
Add value to multi valued entry. |
void |
addValues(Object name,
List values)
Add values to multi valued entry. |
void |
addValues(Object name,
String[] values)
Add values to multi valued entry. |
void |
change(Object name,
Object oldValue,
Object newValue)
Remove value. |
MultiValuedMap |
clone()
|
Object |
get(Object name)
|
Object |
get(Object name,
int index)
Get a value from a multiple value. |
Object |
getRaw(Object name)
|
String |
getString(Object name)
Get value as String. |
List |
getValues(Object name)
Get multiple values. |
static boolean |
isSorted()
|
Object |
put(Object name,
Object value)
Put an entry into the map. |
void |
putAll(Map m)
Put all contents of map. |
Object |
putValues(Object name,
List values)
Put multi valued entry. |
Object |
putValues(Object name,
String[] values)
Put multi valued entry. |
boolean |
remove(Object name,
Object value)
Remove value. |
static void |
setSorted(boolean sorted)
|
Map |
toStringArrayMap()
|
Methods inherited from class java.util.HashMap |
---|
clear, containsKey, containsValue, entrySet, isEmpty, keySet, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public MultiValuedMap()
public MultiValuedMap(int size)
size
- Capacity of the mappublic MultiValuedMap(Map map)
map
- Method Detail |
---|
public List getValues(Object name)
name
- The entry key.
public Object get(Object name, int index)
name
- The entry key.index
- Index of element to get.
public String getString(Object name)
name
- The entry key.
public Object get(Object name)
get
in interface Map
get
in class HashMap
public Object getRaw(Object name)
public Object put(Object name, Object value)
put
in interface Map
put
in class HashMap
name
- The entry key.value
- The entry value.
public Object putValues(Object name, List values)
name
- The entry key.values
- The entry multiple values.
public Object putValues(Object name, String[] values)
name
- The entry key.values
- The entry multiple values.
public List add(Object name, Object value)
name
- The entry key.value
- The entry value.
public void addValues(Object name, List values)
name
- The entry key.values
- The entry multiple values.public void addValues(Object name, String[] values)
name
- The entry key.values
- The entry multiple values.public boolean remove(Object name, Object value)
name
- The entry key.value
- The entry value.
public void change(Object name, Object oldValue, Object newValue)
name
- The entry key.oldValue
- The entry value.public void putAll(Map m)
putAll
in interface Map
putAll
in class HashMap
m
- Mappublic Map toStringArrayMap()
public MultiValuedMap clone()
clone
in class HashMap
public static void setSorted(boolean sorted)
public static boolean isSorted()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |