Package org.jdesktop.beansbinding
Class Converter<S,T>
- java.lang.Object
-
- org.jdesktop.beansbinding.Converter<S,T>
-
- Type Parameters:
S- theConverter'ssource typeT- theConverter'starget type
public abstract class Converter<S,T> extends Object
Converteris responsible for converting a value from one type to another.The conversion methods can throw
RuntimeExceptionsin response to a problem in conversion. For example, aStringtoIntegerconverter might throw aNumberFormatExceptionif theStringcan't be parsed properly into anInteger.- Author:
- Shannon Hickey, Jan Stola, Scott Violet
-
-
Constructor Summary
Constructors Constructor Description Converter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract TconvertForward(S value)Converts a value from the source type to the target type.abstract SconvertReverse(T value)Converts a value from the target type to the source type.
-