public class InstantLongConverter extends Object implements TypeConverter<java.time.Instant,Long>
Constructor and Description |
---|
InstantLongConverter() |
Modifier and Type | Method and Description |
---|---|
Long |
toDatastoreType(java.time.Instant inst)
Method to convert the passed member value to the datastore type.
|
java.time.Instant |
toMemberType(Long ms)
Method to convert the passed datastore value to the member type.
|
public java.time.Instant toMemberType(Long ms)
TypeConverter
toMemberType
in interface TypeConverter<java.time.Instant,Long>
ms
- Value from the datastorepublic Long toDatastoreType(java.time.Instant inst)
TypeConverter
toDatastoreType
in interface TypeConverter<java.time.Instant,Long>
inst
- Value from the memberCopyright © 2018. All rights reserved.