org.databene.commons.converter
Class FormatBasedConverter<S,T>

java.lang.Object
  extended by org.databene.commons.converter.AbstractConverter<S,T>
      extended by 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
 
Fields inherited from class org.databene.commons.converter.AbstractConverter
sourceType, targetType
 
Constructor Summary
FormatBasedConverter(java.lang.Class<S> sourceType, java.lang.Class<T> targetType, java.text.Format format, boolean threadSafe)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean isParallelizable()
           
 boolean isThreadSafe()
           
 
Methods inherited from class org.databene.commons.converter.AbstractConverter
getSourceType, getTargetType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.databene.commons.Converter
convert
 

Field Detail

format

protected java.text.Format format
The java.text.Format object used for conversion

Constructor Detail

FormatBasedConverter

public FormatBasedConverter(java.lang.Class<S> sourceType,
                            java.lang.Class<T> targetType,
                            java.text.Format format,
                            boolean threadSafe)
Method Detail

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.