HyCodeYourTale
classpublicPriority 3

Int2ObjectMapCodec

com.hypixel.hytale.codec.codecs.map.Int2ObjectMapCodec

implements Codec>, WrappedCodec

5

Methods

5

Public Methods

4

Fields

2

Constructors

Constructors

public
Int2ObjectMapCodec(Codec<T> valueCodec, Supplier<Int2ObjectMap<T>> supplier, boolean unmodifiable)
public
Int2ObjectMapCodec(Codec<T> valueCodec, Supplier<Int2ObjectMap<T>> supplier)

Methods

Public Methods (5)

public
Int2ObjectMap<T> decode(BsonValue bsonValue, ExtraInfo extraInfo)
public
Int2ObjectMap<T> decodeJson(RawJsonReader reader, ExtraInfo extraInfo)

throws IOException

public
BsonValue encode(Int2ObjectMap<T> map, ExtraInfo extraInfo)
@Nonnull
public
Codec<T> getChildCodec()
@Override
public
Schema toSchema(SchemaContext context)
@Nonnull@Override

Fields

Private/Package Fields (4)

package-privatereturn s
privateSupplier<Int2ObjectMap<T>> supplier
privateboolean unmodifiable
privateCodec<T> valueCodec

Related Classes