com.antelmann.util
Class Converter.Adapter<T1,T2>
java.lang.Object
com.antelmann.util.Converter.Adapter<T1,T2>
- All Implemented Interfaces:
- Converter<T1,T2>
- Enclosing interface:
- Converter<T1,T2>
public static class Converter.Adapter<T1,T2>
- extends Object
- implements Converter<T1,T2>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Converter.Adapter
public Converter.Adapter()
convert
public T2 convert(T1 obj)
- Specified by:
convert in interface Converter<T1,T2>
convertBack
public T1 convertBack(T2 obj)
throws UnsupportedOperationException
- Specified by:
convertBack in interface Converter<T1,T2>
- Throws:
UnsupportedOperationException
toExtractor
public static <X,Y> PatternExtractor<X,Y> toExtractor(Converter<X,Y> c)
toConverter
public static <X,Y> Converter<X,Y> toConverter(PatternExtractor<X,Y> p)
reverse
public static <X,Y> Converter<X,Y> reverse(Converter<Y,X> c)
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads