public class CalendarAccessor extends Object implements PropertyAccessor<Calendar>
| Modifier and Type | Field and Description |
|---|---|
private static SimpleDateFormat |
DATE_FORMATTER
The Constant DATE_FORMATTER.
|
| Constructor and Description |
|---|
CalendarAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
fromBytes(Class targetClass,
byte[] b)
From bytes.
|
Calendar |
fromString(Class targetClass,
String s)
Converts string representation to the data object whose type is T.
|
Calendar |
getCopy(Object object)
Gets copy of object
|
Calendar |
getInstance(Class<?> clazz) |
byte[] |
toBytes(Object object)
To bytes.
|
String |
toString(Object object)
Converts Object to String.
|
private static final SimpleDateFormat DATE_FORMATTER
public Calendar fromBytes(Class targetClass, byte[] b)
PropertyAccessorfromBytes in interface PropertyAccessor<Calendar>b - the bpublic byte[] toBytes(Object object)
PropertyAccessortoBytes in interface PropertyAccessor<Calendar>object - the objectpublic String toString(Object object)
PropertyAccessortoString in interface PropertyAccessor<Calendar>object - the objectpublic Calendar fromString(Class targetClass, String s)
PropertyAccessorfromString in interface PropertyAccessor<Calendar>s - the spublic Calendar getCopy(Object object)
PropertyAccessorgetCopy in interface PropertyAccessor<Calendar>public Calendar getInstance(Class<?> clazz)
getInstance in interface PropertyAccessor<Calendar>Copyright © 2015. All Rights Reserved.