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)
TypeConvertertoMemberType in interface TypeConverter<java.time.Duration,Long>val - Value from the datastorepublic Long toDatastoreType(java.time.Duration date)
TypeConvertertoDatastoreType in interface TypeConverter<java.time.Duration,Long>date - Value from the memberCopyright © 2020. All rights reserved.