|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.format.datetime.joda.MillisecondInstantPrinter
public final class MillisecondInstantPrinter
Prints Long instances using a DateTimeFormatter
.
Field Summary | |
---|---|
private DateTimeFormatter |
formatter
|
Constructor Summary | |
---|---|
MillisecondInstantPrinter(DateTimeFormatter formatter)
Create a new ReadableInstantPrinter. |
Method Summary | |
---|---|
java.lang.String |
print(java.lang.Long instant,
java.util.Locale locale)
Print the object of type T for display. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DateTimeFormatter formatter
Constructor Detail |
---|
public MillisecondInstantPrinter(DateTimeFormatter formatter)
formatter
- the Joda DateTimeFormatter instanceMethod Detail |
---|
public java.lang.String print(java.lang.Long instant, java.util.Locale locale)
Printer
print
in interface Printer<java.lang.Long>
instant
- the instance to printlocale
- the current user locale
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |