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