Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- tryUpgrade(Class, String, Codec)
- tryDowngrade(Class, String, Codec)
- size()
- isEmpty()
- containsKey(Object)
- containsValue(Object)
- get(Object)
- get(Class)
- put(Class, V)
- remove(Object)
- putAll(Map)
- clear()
- keySet()
- values()
- entrySet()
- computeIfAbsent(Class, Function)
- equals(Object)
- hashCode()
- toString()
- empty()
Class MapKeyMapCodec.TypeMap<V>
java.lang.Object
com.hypixel.hytale.codec.lookup.MapKeyMapCodec.TypeMap<V>
- Enclosing class:
MapKeyMapCodec<V>
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTypeMap(MapKeyMapCodec<V> codec) TypeMap(MapKeyMapCodec<V> codec, Map<Class<? extends V>, V> map, Map<Class<? extends V>, V> internalMap, Map<String, org.bson.BsonValue> unknownValues) TypeMap(MapKeyMapCodec<V> codec, Map<Class<? extends V>, V> map, Map<String, org.bson.BsonValue> unknownValues) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()<T extends V>
TcomputeIfAbsent(Class<? extends T> key, Function<? super Class<? extends V>, T> mappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) static <V> MapKeyMapCodec.TypeMap<V> empty()entrySet()boolean<T extends V>
TinthashCode()booleanisEmpty()keySet()voidintsize()toString()<T extends V>
voidtryDowngrade(Class<T> tClass, String id, Codec<T> codec) Called when something is unregistered in order to try and downgrade values into unknown values.<T extends V>
voidtryUpgrade(Class<T> tClass, String id, Codec<T> codec) Called when something new is registered in order to try to convert unknown values into real valuesvalues()Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
TypeMap
-
TypeMap
-
TypeMap
-
-
Method Details
-
tryUpgrade
-
tryDowngrade
-
size
-
isEmpty
-
containsKey
-
containsValue
-
get
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
computeIfAbsent
-
equals
-
hashCode
-
toString
-
empty
-