|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.format.datetime.joda.ReadableInstantPrinter
public final class ReadableInstantPrinter
Prints JodaTime ReadableInstant
instances using a DateTimeFormatter
.
Field Summary | |
---|---|
private DateTimeFormatter |
formatter
|
Constructor Summary | |
---|---|
ReadableInstantPrinter(DateTimeFormatter formatter)
Create a new ReadableInstantPrinter. |
Method Summary | |
---|---|
java.lang.String |
print(ReadableInstant 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 ReadableInstantPrinter(DateTimeFormatter formatter)
formatter
- the Joda DateTimeFormatter instanceMethod Detail |
---|
public java.lang.String print(ReadableInstant instant, java.util.Locale locale)
Printer
print
in interface Printer<ReadableInstant>
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 |