Interface Transformer<E,W>
- Type Parameters:
E
- The wrapper typeW
- The wrapped type
- All Known Implementing Classes:
AbstractTransformer
,FunctionalTransformer
,MapEntryTransformer
public interface Transformer<E,W>
Performs type conversions.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionfromWrapped
(W w) static <E> Transformer
<E, E> identity()
invert()
Gets a transformer that wraps and unwraps only when elements are of the wrapper or wrapped types, respectively.
-
Method Details
-
toWrapped
-
fromWrapped
-
unbounded
Transformer<Object,Object> unbounded()Gets a transformer that wraps and unwraps only when elements are of the wrapper or wrapped types, respectively. This is useful for legacy APIs that useObject
or unbounded generics, such as: -
invert
Transformer<W,E> invert() -
identity
-