Spring Framework

org.springframework.format
Interface Printer<T>

Type Parameters:
T - the type of object this Printer prints
All Known Subinterfaces:
Formatter<T>
All Known Implementing Classes:
AbstractNumberFormatter, CurrencyFormatter, DateFormatter, MillisecondInstantPrinter, NumberFormatter, PercentFormatter, ReadableInstantPrinter, ReadablePartialPrinter

public interface Printer<T>

Prints objects of type T for display.

Since:
3.0
Author:
Keith Donald

Method Summary
 java.lang.String print(T object, java.util.Locale locale)
          Print the object of type T for display.
 

Method Detail

print

java.lang.String print(T object,
                       java.util.Locale locale)
Print the object of type T for display.

Parameters:
object - the instance to print
locale - the current user locale
Returns:
the printed text string

Spring Framework