org.databene.commons.converter
Class FormatBasedConverter<S,T>
java.lang.Object
org.databene.commons.converter.AbstractConverter<S,T>
org.databene.commons.converter.FormatBasedConverter<S,T>
- Type Parameters:
S -
- All Implemented Interfaces:
- java.lang.Cloneable, Converter<S,T>, ThreadAware
- Direct Known Subclasses:
- FormatFormatConverter, ParseFormatConverter
public abstract class FormatBasedConverter<S,T>
- extends AbstractConverter<S,T>
- implements java.lang.Cloneable
Parent class for Converters that use a Format instance for
parsing Strings or formatting other objects.
Created: 26.02.2010 14:52:25
- Since:
- 0.5.0
- Author:
- Volker Bergmann
|
Field Summary |
protected java.text.Format |
format
The java.text.Format object used for conversion |
|
Constructor Summary |
FormatBasedConverter(java.lang.Class<S> sourceType,
java.lang.Class<T> targetType,
java.text.Format format,
boolean threadSafe)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
format
protected java.text.Format format
- The java.text.Format object used for conversion
FormatBasedConverter
public FormatBasedConverter(java.lang.Class<S> sourceType,
java.lang.Class<T> targetType,
java.text.Format format,
boolean threadSafe)
isParallelizable
public boolean isParallelizable()
- Specified by:
isParallelizable in interface ThreadAware
isThreadSafe
public boolean isThreadSafe()
- Specified by:
isThreadSafe in interface ThreadAware
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object
Copyright © 2010. All Rights Reserved.