|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MapPropertyI<K,V>
A property that holds a value that is a Map. The interface denotes
how to access the keys and values of that map.
It is not defined if the collection itself can be null or if the elements can be null.
| Method Summary | |
|---|---|
boolean |
containsKey(K key)
Returns if key is in this map. |
boolean |
containsValue(V value)
Returns if value is in this map. |
V |
get(K key)
Returns the value the the key points to. |
java.util.Iterator<java.util.Map.Entry<K,V>> |
iterator()
Returns an iterator that iterates over this property's entries. |
java.util.Set<K> |
keySet()
Returns an, always unmodifiable, key set direct from the backing Map. |
Result<java.util.Map.Entry<K,V>> |
put(K key,
V value)
Associates the value with the key. |
ResultList<java.util.Map.Entry<K,V>> |
putAll(java.util.Map<? extends K,? extends V> elements)
Adds a whole map to this one. |
Result<java.util.Map.Entry<K,V>> |
remove(K key)
Removes the value that the key points to. |
ResultList<java.util.Map.Entry<K,V>> |
removeAll()
Removes all elements in this property by iterating and removing. |
int |
size()
Returns the number of elements in this property. |
java.util.Collection<V> |
values()
Returns the values from the backing Map as an unmidifiable collection. |
| Method Detail |
|---|
V get(K key)
key - The key.
Result<java.util.Map.Entry<K,V>> put(K key,
V value)
key - The key.value - The value.
null.ResultList<java.util.Map.Entry<K,V>> putAll(java.util.Map<? extends K,? extends V> elements)
This method iterates over the collection and adds with put(Object, Object)
elements - The collection which elements to add. Not null.
null.Result<java.util.Map.Entry<K,V>> remove(K key)
NullPointerException if the collection
is null.
key - The key.
null.ResultList<java.util.Map.Entry<K,V>> removeAll()
null.java.util.Set<K> keySet()
null.java.util.Collection<V> values()
null.boolean containsKey(K key)
key is in this map. Will throw a NullPointerException if the collection
is null.
key - The value to check for. May be null.
key is in this map.boolean containsValue(V value)
value is in this map. Will throw a NullPointerException if the collection
is null.
value - The value to check for. May be null.
value is in this map.java.util.Iterator<java.util.Map.Entry<K,V>> iterator()
NullPointerException if the map
is null.
null.int size()
NullPointerException if the map
is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||