public class BooleanIntegerConverter extends Object implements TypeConverter<Boolean,Integer>
Constructor and Description |
---|
BooleanIntegerConverter() |
Modifier and Type | Method and Description |
---|---|
Integer |
toDatastoreType(Boolean bool)
Method to convert the passed member value to the datastore type.
|
Boolean |
toMemberType(Integer val)
Method to convert the passed datastore value to the member type.
|
public Boolean toMemberType(Integer val)
TypeConverter
toMemberType
in interface TypeConverter<Boolean,Integer>
val
- Value from the datastorepublic Integer toDatastoreType(Boolean bool)
TypeConverter
toDatastoreType
in interface TypeConverter<Boolean,Integer>
bool
- Value from the memberCopyright © 2018. All rights reserved.