public abstract class TemporalAccessorStringBridge<T extends TemporalAccessor> extends Object implements TwoWayStringBridge, IgnoreAnalyzerBridge
TemporalAccessor
to String
.Constructor and Description |
---|
TemporalAccessorStringBridge(DateTimeFormatter formatter,
Class<T> type) |
Modifier and Type | Method and Description |
---|---|
String |
objectToString(Object object)
Converts the object representation to a string.
|
Object |
stringToObject(String stringValue)
Convert the index string representation to an object.
|
public TemporalAccessorStringBridge(DateTimeFormatter formatter, Class<T> type)
public String objectToString(Object object)
StringBridge
objectToString
in interface StringBridge
object
- The object to transform into a string representation.null
. It can be empty though.public Object stringToObject(String stringValue)
TwoWayStringBridge
stringToObject
in interface TwoWayStringBridge
stringValue
- The index value.Object
.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved