Package de.bild.codec
Enum Class PrimitiveArrayCodec
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveArrayCodec>,java.lang.constant.Constable,org.bson.codecs.Codec,org.bson.codecs.Decoder,org.bson.codecs.Encoder
Codecs for primitive arrays
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiondecode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext) protected abstract ObjectdecodeInternal(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext) voidprotected abstract voidencodeInternal(org.bson.BsonWriter writer, Object value, org.bson.codecs.EncoderContext encoderContext) static PrimitiveArrayCodecstatic PrimitiveArrayCodecReturns the enum constant of this class with the specified name.static PrimitiveArrayCodec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BYTE
-
BOOLEAN
-
CHARACTER
-
FLOAT
-
INTEGER
-
LONG
-
SHORT
-
DOUBLE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getEncoderClass
- Specified by:
getEncoderClassin interfaceorg.bson.codecs.Encoder
-
get
-
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:
encodein interfaceorg.bson.codecs.Encoder
-
decode
- Specified by:
decodein interfaceorg.bson.codecs.Decoder
-