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 Map<Key,VOuter>
| Constructor and Description |
|---|
ConvertedMap(Map<Key,VInner> inner) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Key,VOuter>> |
entrySet() |
VOuter |
get(Object key) |
boolean |
isEmpty() |
Set<Key> |
keySet() |
VOuter |
put(Key key,
VOuter value) |
void |
putAll(Map<? extends Key,? extends VOuter> m) |
VOuter |
remove(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.
|
String |
toString()
Returns a string representation of this map.
|
Collection<VOuter> |
values() |
getInnerConverter, getOuterConverter, toInner, toOuterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean containsKey(Object key)
containsKey in interface Map<Key,VOuter>public boolean containsValue(Object value)
containsValue in interface Map<Key,VOuter>protected VOuter toOuter(Key key, VInner inner)
key - - unused value.inner - - the inner value.protected VInner toInner(Key key, VOuter outer)
key - - unused value.outer - - the outer value.public String toString()
String.valueOf(Object).Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.