Package de.bild.codec

Enum Class PrimitiveArrayCodec

java.lang.Object
java.lang.Enum<PrimitiveArrayCodec>
de.bild.codec.PrimitiveArrayCodec
All Implemented Interfaces:
Serializable, Comparable<PrimitiveArrayCodec>, java.lang.constant.Constable, org.bson.codecs.Codec, org.bson.codecs.Decoder, org.bson.codecs.Encoder

public enum PrimitiveArrayCodec extends Enum<PrimitiveArrayCodec> implements org.bson.codecs.Codec
Codecs for primitive arrays
  • Enum Constant Details

  • Method Details

    • values

      public static PrimitiveArrayCodec[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PrimitiveArrayCodec valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getEncoderClass

      public Class getEncoderClass()
      Specified by:
      getEncoderClass in interface org.bson.codecs.Encoder
    • get

      public static PrimitiveArrayCodec get(Class<?> arrayClass)
    • decodeInternal

      protected abstract Object decodeInternal(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
    • encodeInternal

      protected abstract void encodeInternal(org.bson.BsonWriter writer, Object value, org.bson.codecs.EncoderContext encoderContext)
    • encode

      public void encode(org.bson.BsonWriter writer, Object value, org.bson.codecs.EncoderContext encoderContext)
      Specified by:
      encode in interface org.bson.codecs.Encoder
    • decode

      public Object decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
      Specified by:
      decode in interface org.bson.codecs.Decoder