public class MultiMap<K> extends Object implements ConcurrentMap<K,Object>
Implemented as a map of LazyList values
LazyList
Constructor and Description |
---|
MultiMap() |
MultiMap(boolean concurrent) |
MultiMap(int capacity) |
MultiMap(Map map) |
Modifier and Type | Method and Description |
---|---|
void |
add(K name,
Object value)
Add value to multi valued entry.
|
void |
addValues(K name,
List values)
Add values to multi valued entry.
|
void |
addValues(K name,
String[] values)
Add values to multi valued entry.
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,Object>> |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object name) |
String |
getString(Object name)
Get value as String.
|
Object |
getValue(Object name,
int i)
Get a value from a multiple value.
|
List |
getValues(Object name)
Get multiple values.
|
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
Object |
put(K name,
Object value)
Put and entry into the map.
|
void |
putAll(Map m)
Put all contents of map.
|
Object |
putIfAbsent(K key,
Object value) |
Object |
putValues(K name,
List values)
Put multi valued entry.
|
Object |
putValues(K name,
String[] values)
Put multi valued entry.
|
Object |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
boolean |
removeValue(K name,
Object value)
Remove value.
|
Object |
replace(K key,
Object value) |
boolean |
replace(K key,
Object oldValue,
Object newValue) |
int |
size() |
Map |
toStringArrayMap() |
Collection<Object> |
values() |
public MultiMap()
public MultiMap(Map map)
public MultiMap(int capacity)
public MultiMap(boolean concurrent)
public List getValues(Object name)
name
- The entry key.public Object getValue(Object name, int i)
name
- The entry key.i
- Index of element to get.public String getString(Object name)
name
- The entry key.public Object putValues(K name, List values)
name
- The entry key.values
- The List of multiple values.public Object putValues(K name, String[] values)
name
- The entry key.values
- The String array of multiple values.public void add(K name, Object value)
name
- The entry key.value
- The entry value.public void addValues(K name, List values)
name
- The entry key.values
- The List of multiple values.public void addValues(K name, String[] values)
name
- The entry key.values
- The String array of multiple values.public boolean removeValue(K name, Object value)
name
- The entry key.value
- The entry value.public void putAll(Map m)
public Map toStringArrayMap()
public boolean containsKey(Object key)
containsKey
in interface Map<K,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<K,Object>
public boolean equals(Object o)
public int hashCode()
public Object putIfAbsent(K key, Object value)
putIfAbsent
in interface ConcurrentMap<K,Object>
public boolean remove(Object key, Object value)
remove
in interface ConcurrentMap<K,Object>
public boolean replace(K key, Object oldValue, Object newValue)
replace
in interface ConcurrentMap<K,Object>
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.