classpublicPriority 3
Object2IntMapCodec
com.hypixel.hytale.codec.codecs.map.Object2IntMapCodec
implements Codec>, WrappedCodec
5
Methods
5
Public Methods
4
Fields
2
Constructors
Constructors
public
Object2IntMapCodec(Codec<T> keyCodec, Supplier<Object2IntMap<T>> supplier, boolean unmodifiable)public
Object2IntMapCodec(Codec<T> keyCodec, Supplier<Object2IntMap<T>> supplier)Methods
Public Methods (5)
public
Object2IntMap<T> decode(BsonValue bsonValue, ExtraInfo extraInfo)public
Object2IntMap<T> decodeJson(RawJsonReader reader, ExtraInfo extraInfo)throws IOException
public
BsonValue encode(Object2IntMap<T> map, ExtraInfo extraInfo)@Nonnull
public
Codec<T> getChildCodec()@Override
public
Schema toSchema(SchemaContext context)@Nonnull@Override
Fields
Private/Package Fields (4)
package-private
return sprivate
Codec<T> keyCodecprivate
Supplier<Object2IntMap<T>> supplierprivate
boolean unmodifiable