org.springframework.format.datetime.joda

Class ReadablePartialPrinter

  • java.lang.Object
    • org.springframework.format.datetime.joda.ReadablePartialPrinter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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
    • Constructor Detail

      • ReadablePartialPrinter

        public ReadablePartialPrinter(DateTimeFormatter formatter)
        Create a new ReadableInstantPrinter.
        Parameters:
        formatter - the Joda DateTimeFormatter instance
    • Method Detail

      • print

        public java.lang.String print(ReadablePartial partial,
                                      java.util.Locale locale)
        Description copied from interface: Printer
        Print the object of type T for display.
        Specified by:
        print in interface Printer<ReadablePartial>
        Parameters:
        partial - the instance to print
        locale - the current user locale
        Returns:
        the printed text string