public static enum ArrayCodec.PrimitiveArrayCodec extends Enum<ArrayCodec.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 ArrayCodec.PrimitiveArrayCodec |
get(Class<?> arrayClass) |
Class |
getEncoderClass() |
static ArrayCodec.PrimitiveArrayCodec |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArrayCodec.PrimitiveArrayCodec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrayCodec.PrimitiveArrayCodec BYTE
public static final ArrayCodec.PrimitiveArrayCodec BOOLEAN
public static final ArrayCodec.PrimitiveArrayCodec CHARACTER
public static final ArrayCodec.PrimitiveArrayCodec FLOAT
public static final ArrayCodec.PrimitiveArrayCodec INTEGER
public static final ArrayCodec.PrimitiveArrayCodec LONG
public static final ArrayCodec.PrimitiveArrayCodec SHORT
public static final ArrayCodec.PrimitiveArrayCodec DOUBLE
public static ArrayCodec.PrimitiveArrayCodec[] values()
for (ArrayCodec.PrimitiveArrayCodec c : ArrayCodec.PrimitiveArrayCodec.values()) System.out.println(c);
public static ArrayCodec.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 ArrayCodec.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 © 2018 BILD GmbH & Co. KG. All rights reserved.