public enum PrimitiveArrayCodec extends Enum<PrimitiveArrayCodec> implements org.bson.codecs.Codec
| Enum Constant and Description |
|---|
BOOLEAN |
BYTE |
CHARACTER |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(org.bson.BsonReader reader,
org.bson.codecs.DecoderContext decoderContext) |
protected abstract Object |
decodeInternal(org.bson.BsonReader reader,
org.bson.codecs.DecoderContext decoderContext) |
void |
encode(org.bson.BsonWriter writer,
Object value,
org.bson.codecs.EncoderContext encoderContext) |
protected abstract void |
encodeInternal(org.bson.BsonWriter writer,
Object value,
org.bson.codecs.EncoderContext encoderContext) |
static PrimitiveArrayCodec |
get(Class<?> arrayClass) |
Class |
getEncoderClass() |
static PrimitiveArrayCodec |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveArrayCodec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveArrayCodec BYTE
public static final PrimitiveArrayCodec BOOLEAN
public static final PrimitiveArrayCodec CHARACTER
public static final PrimitiveArrayCodec FLOAT
public static final PrimitiveArrayCodec INTEGER
public static final PrimitiveArrayCodec LONG
public static final PrimitiveArrayCodec SHORT
public static final PrimitiveArrayCodec DOUBLE
public static PrimitiveArrayCodec[] values()
for (PrimitiveArrayCodec c : PrimitiveArrayCodec.values()) System.out.println(c);
public static PrimitiveArrayCodec valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class getEncoderClass()
getEncoderClass in interface org.bson.codecs.Encoderpublic static PrimitiveArrayCodec get(Class<?> arrayClass)
protected abstract Object decodeInternal(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
protected abstract void encodeInternal(org.bson.BsonWriter writer,
Object value,
org.bson.codecs.EncoderContext encoderContext)
public void encode(org.bson.BsonWriter writer,
Object value,
org.bson.codecs.EncoderContext encoderContext)
encode in interface org.bson.codecs.Encoderpublic Object decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
decode in interface org.bson.codecs.DecoderCopyright © 2019 BILD GmbH & Co. KG. All rights reserved.