public class ByteConverter extends TypeConverter implements SimpleValueConverter
Constructor and Description |
---|
ByteConverter() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertToPrimitiveArray(Byte[] values) |
static Object |
convertToWrapperArray(byte[] values) |
Object |
decode(Class targetClass,
Object val,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) object
NOTE: optionalExtraInfo might be null |
Object |
encode(Object value,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject |
decode, encode, equals, getMapper, getSupportTypes, hashCode, setMapper, setSupportedTypes, setSupportTypes
public Object decode(Class targetClass, Object val, MappedField optionalExtraInfo)
TypeConverter
DBObject
and provide the corresponding java (type-safe) object
decode
in class TypeConverter
public Object encode(Object value, MappedField optionalExtraInfo)
TypeConverter
DBObject
encode
in class TypeConverter
public static Object convertToWrapperArray(byte[] values)
Copyright © 2016. All rights reserved.