T - R - public class BiFunctionTransformer<T,U,R> extends Object implements PropertyTransformer<BiFunction<T,U,R>>
| Modifier and Type | Field and Description |
|---|---|
static Class<?>[] |
EMPTY_ARRAY |
static BiFunctionTransformer<Object,Object,Object> |
SHARED_INSTANCE |
| Constructor and Description |
|---|
BiFunctionTransformer() |
| Modifier and Type | Method and Description |
|---|---|
BiFunction<T,U,R> |
transform(String value,
Field field)
This method actually transforms value to object instance
|
BiFunction<T,U,R> |
transform(String value,
Field field,
Class<?>... types) |
public static final BiFunctionTransformer<Object,Object,Object> SHARED_INSTANCE
public static final Class<?>[] EMPTY_ARRAY
public BiFunction<T,U,R> transform(String value, Field field, Class<?>... types) throws TransformationException
transform in interface PropertyTransformer<BiFunction<T,U,R>>value - value that will be transformedfield - value will be assigned to this fieldtypes - additional types for Function TransformerTransformationException - if something went wrongPropertyTransformer.transform(java.lang.String,
java.lang.reflect.Field)public BiFunction<T,U,R> transform(String value, Field field) throws TransformationException
transform in interface PropertyTransformer<BiFunction<T,U,R>>value - value that will be transformedfield - value will be assigned to this fieldTransformationException - if something went wrongPropertyTransformer.transform(java.lang.String,
java.lang.reflect.Field)Copyright © 2014–2015. All rights reserved.