Class BsonFunctionCodec<T>

java.lang.Object
com.hypixel.hytale.codec.function.BsonFunctionCodec<T>
All Implemented Interfaces:
Codec<T>, RawJsonCodec<T>, SchemaConvertable<T>, WrappedCodec<T>
Direct Known Subclasses:
DocumentContainingCodec

@Deprecated public class BsonFunctionCodec<T> extends Object implements Codec<T>, WrappedCodec<T>
Deprecated.
  • Field Details

    • codec

      @Nonnull private final Codec<T> codec
      Deprecated.
    • decode

      @Nonnull private final BiFunction<T,org.bson.BsonValue,T> decode
      Deprecated.
    • encode

      @Nonnull private final BiFunction<org.bson.BsonValue,T,org.bson.BsonValue> encode
      Deprecated.
  • Constructor Details

    • BsonFunctionCodec

      public BsonFunctionCodec(Codec<T> codec, BiFunction<T,org.bson.BsonValue,T> decode, BiFunction<org.bson.BsonValue,T,org.bson.BsonValue> encode)
      Deprecated.
  • Method Details