Package com.hypixel.hytale.codec.lookup
Class StringCodecMapCodec<T,C extends Codec<? extends T>>
java.lang.Object
com.hypixel.hytale.codec.lookup.ACodecMapCodec<String,T,C>
com.hypixel.hytale.codec.lookup.StringCodecMapCodec<T,C>
- All Implemented Interfaces:
Codec<T>,InheritCodec<T>,RawJsonCodec<T>,RawJsonInheritCodec<T>,SchemaConvertable<T>,ValidatableCodec<T>
- Direct Known Subclasses:
AssetCodecMapCodec,BuilderCodecMapCodec,CodecMapCodec
public abstract class StringCodecMapCodec<T,C extends Codec<? extends T>>
extends ACodecMapCodec<String,T,C>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.codec.lookup.ACodecMapCodec
ACodecMapCodec.UnknownIdException -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.codec.lookup.ACodecMapCodec
allowDefault, classToId, codecs, encodeDefaultKey, idToClass, idToCodec, key, keyCodecFields inherited from interface com.hypixel.hytale.codec.Codec
BASE64_PATTERN, BOOLEAN, BSON_DOCUMENT, BYTE, BYTE_ARRAY, DOUBLE, DOUBLE_ARRAY, DURATION, DURATION_SECONDS, FLOAT, FLOAT_ARRAY, INSTANT, INT_ARRAY, INTEGER, LOG_LEVEL, LONG, LONG_ARRAY, PATH, SHORT, STRING, STRING_ARRAY, UUID_BINARY, UUID_STRING -
Constructor Summary
ConstructorsConstructorDescriptionStringCodecMapCodec(boolean allowDefault) StringCodecMapCodec(String key, boolean allowDefault) StringCodecMapCodec(String key, boolean allowDefault, boolean encodeDefaultKey) -
Method Summary
Methods inherited from class com.hypixel.hytale.codec.lookup.ACodecMapCodec
decode, decodeAndInherit, decodeAndInherit, decodeAndInheritJson, decodeAndInheritJson, encode, getClassFor, getCodecFor, getCodecFor, getDefaultCodec, getIdFor, getRegisteredIds, mutateChildSchema, register, toSchema, validate, validateDefaultsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.codec.RawJsonCodec
decodeJsonMethods inherited from interface com.hypixel.hytale.codec.schema.SchemaConvertable
toSchema
-
Field Details
-
stampedLock
-
stringTreeMap
-
-
Constructor Details
-
StringCodecMapCodec
public StringCodecMapCodec() -
StringCodecMapCodec
public StringCodecMapCodec(boolean allowDefault) -
StringCodecMapCodec
-
StringCodecMapCodec
-
StringCodecMapCodec
-
-
Method Details
-
register
-
remove
-
decodeJson
- Specified by:
decodeJsonin interfaceCodec<T>- Specified by:
decodeJsonin interfaceRawJsonCodec<T>- Overrides:
decodeJsonin classACodecMapCodec<String,T, C extends Codec<? extends T>> - Throws:
IOException
-