public class FunctionAdapter<I,O>
extends java.lang.Object
implements com.google.common.base.Function<I,O>
FunctionAdapter wraps Converter to implementation of Function. FunctionAdapter is a good way to reuse
existing converters with rich set of utility methods of Guava project}.
Converter converter = ....
...
Collection result = Collections2.transform(collection, new FunctionAdapter(converter));
| Constructor and Description |
|---|
FunctionAdapter(org.srplib.conversion.Converter<I,O> converter) |
| Modifier and Type | Method and Description |
|---|---|
O |
apply(I input) |