|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slim3.commons.beanutil.TimestampConverter
public class TimestampConverter
The converter for Timestamp.
| Field Summary | |
|---|---|
protected String |
pattern
the pattern for SimpleDateFormat. |
| Constructor Summary | |
|---|---|
TimestampConverter(String pattern)
Constructor. |
|
| Method Summary | |
|---|---|
Object |
getAsObject(String value)
Returns the value as object. |
String |
getAsString(Object value)
Returns the value as string. |
boolean |
isTarget(Class<?> clazz)
Determines if the class is target. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String pattern
SimpleDateFormat.
| Constructor Detail |
|---|
public TimestampConverter(String pattern)
throws NullPointerException
pattern - the pattern for SimpleDateFormat
NullPointerException - if the pattern parameter is null| Method Detail |
|---|
public Object getAsObject(String value)
Converter
getAsObject in interface Convertervalue - the value
public String getAsString(Object value)
Converter
getAsString in interface Convertervalue - the value
public boolean isTarget(Class<?> clazz)
Converter
isTarget in interface Converterclazz - the class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||