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