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