org.databene.commons.converter
Class FormatFormatConverter<S>
java.lang.Object
org.databene.commons.converter.AbstractConverter<S,T>
org.databene.commons.converter.FormatBasedConverter<S,java.lang.String>
org.databene.commons.converter.FormatFormatConverter<S>
- All Implemented Interfaces:
- java.lang.Cloneable, Converter<S,java.lang.String>, ThreadAware
public class FormatFormatConverter<S>
- extends FormatBasedConverter<S,java.lang.String>
Converts an object to a String by using a java.lang.Format object's format() method.
Created: 30.08.2006 19:43:09
- Since:
- 0.1
- Author:
- Volker Bergmann
|
Constructor Summary |
FormatFormatConverter(java.lang.Class<S> sourceType,
java.text.Format format,
boolean threadSafe)
Constructor that initializes the format object. |
|
Method Summary |
java.lang.String |
convert(S source)
Converts an object to a String by using the format's format() method. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatFormatConverter
public FormatFormatConverter(java.lang.Class<S> sourceType,
java.text.Format format,
boolean threadSafe)
- Constructor that initializes the format object.
- Parameters:
format - the format object to use.
convert
public java.lang.String convert(S source)
- Converts an object to a String by using the format's format() method.
- Parameters:
source - the object to convert
- Returns:
- the converted object
- See Also:
Converter
Copyright © 2010. All Rights Reserved.