org.hrodberaht.i18n.formatter
Class Formatter<T>
java.lang.Object
org.hrodberaht.i18n.formatter.Formatter<T>
- Direct Known Subclasses:
- BooleanFormatter, DateFormatter, NumberFormatter
public class Formatter<T>
- extends java.lang.Object
Simple Java Utils
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Robert Alexandersson
|
Field Summary |
protected java.util.Locale |
locale
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locale
protected java.util.Locale locale
Formatter
public Formatter()
getFormatter
public static <T> Formatter<T> getFormatter(java.lang.Class<T> aType)
getFormatter
public static <T> Formatter<T> getFormatter(java.lang.Class<T> aType,
DateFormatter.DateConvert dateConvert)
isSupportedType
public static boolean isSupportedType(java.lang.Class type)
- Returns
true if the provided class is an array getType,
implements one of the Formatter classes currently supported.
- See Also:
getFormatter(Class)
convertToString
public java.lang.String convertToString(T value)
convertToObject
public T convertToObject(java.lang.String string)
Copyright © 2010. All Rights Reserved.