VInner
- - type of the value in the entries in the inner invisible map.VOuter
- - type of the value in the entries publically accessible in the outer map.public abstract class ConvertedMap<Key,VInner,VOuter> extends AbstractConverted<VInner,VOuter> implements java.util.Map<Key,VOuter>
Constructor and Description |
---|
ConvertedMap(java.util.Map<Key,VInner> inner) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<Key,VOuter>> |
entrySet() |
VOuter |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.Set<Key> |
keySet() |
VOuter |
put(Key key,
VOuter value) |
void |
putAll(java.util.Map<? extends Key,? extends VOuter> m) |
VOuter |
remove(java.lang.Object key) |
int |
size() |
protected VInner |
toInner(Key key,
VOuter outer)
Convert a value from the outer map to the internal inner map.
|
protected VOuter |
toOuter(Key key,
VInner inner)
Convert a value from the inner map to the outer visible map.
|
java.lang.String |
toString()
Returns a string representation of this map.
|
java.util.Collection<VOuter> |
values() |
getOuterConverter, toInner, toOuter
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
protected VOuter toOuter(Key key, VInner inner)
inner
- - the inner value.protected VInner toInner(Key key, VOuter outer)
outer
- - the outer value.public VOuter get(java.lang.Object key)
public java.util.Set<Key> keySet()
public VOuter remove(java.lang.Object key)
public java.util.Collection<VOuter> values()
public java.lang.String toString()
String.valueOf(Object)
.toString
in class java.lang.Object