Java Code Examples for org.osgl.Lang#Func2
The following examples show how to use
org.osgl.Lang#Func2 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PropertyHandlerBase.java From java-tool with Apache License 2.0 | 5 votes |
PropertyHandlerBase(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, PropertyGetter.NullValuePolicy nullValuePolicy) { setObjectFactory(objectFactory); setStringValueResolver(stringValueResolver); if (null == nullValuePolicy) { nullValuePolicy = PropertyGetter.NullValuePolicy.RETURN_NULL; } setNullValuePolicy(nullValuePolicy); }
Example 2
Source File: MapPropertyGetter.java From java-tool with Apache License 2.0 | 5 votes |
public MapPropertyGetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, PropertyGetter.NullValuePolicy nullValuePolicy, Class<?> keyType, Class<?> valType) { super(objectFactory, stringValueResolver, nullValuePolicy, keyType, valType); }
Example 3
Source File: ReflectionPropertyGetter.java From java-tool with Apache License 2.0 | 5 votes |
public ReflectionPropertyGetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, NullValuePolicy nullValuePolicy, Class entityClass, Method m, Field f, ReflectionPropertyHandlerFactory factory) { super(objectFactory, stringValueResolver, nullValuePolicy, entityClass, m, f); this.factory = $.requireNotNull(factory); }
Example 4
Source File: ReflectionPropertyGetter.java From java-tool with Apache License 2.0 | 5 votes |
public ReflectionPropertyGetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class entityClass, Method m, Field f, ReflectionPropertyHandlerFactory factory) { super(objectFactory, stringValueResolver, entityClass, m, f); this.factory = $.requireNotNull(factory); }
Example 5
Source File: AdaptiveMapPropertySetter.java From java-tool with Apache License 2.0 | 5 votes |
AdaptiveMapPropertySetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class<?> keyType, Class<?> valType) { super(objectFactory, stringValueResolver, keyType, valType); setNullValuePolicy(PropertyGetter.NullValuePolicy.CREATE_NEW); }
Example 6
Source File: AdaptiveMapPropertyGetter.java From java-tool with Apache License 2.0 | 5 votes |
public AdaptiveMapPropertyGetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, NullValuePolicy nullValuePolicy, Class<?> keyType, Class<?> valType) { super(objectFactory, stringValueResolver, nullValuePolicy, keyType, valType); }
Example 7
Source File: MapPropertyHandler.java From java-tool with Apache License 2.0 | 5 votes |
public MapPropertyHandler(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, PropertyGetter.NullValuePolicy nullValuePolicy, Class<?> keyType, Class<?> valType) { super(objectFactory, stringValueResolver, nullValuePolicy); this.keyType = $.requireNotNull(keyType); this.valType = $.requireNotNull(valType); }
Example 8
Source File: MapPropertySetter.java From java-tool with Apache License 2.0 | 5 votes |
MapPropertySetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class<?> keyType, Class<?> valType) { super(objectFactory, stringValueResolver, keyType, valType); setNullValuePolicy(PropertyGetter.NullValuePolicy.CREATE_NEW); }
Example 9
Source File: ListPropertyHandler.java From java-tool with Apache License 2.0 | 5 votes |
ListPropertyHandler(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, PropertyGetter.NullValuePolicy nullValuePolicy, Class<?> itemType) { super(objectFactory, stringValueResolver, nullValuePolicy); this.itemType = $.requireNotNull(itemType); }
Example 10
Source File: ReflectionPropertyHandler.java From java-tool with Apache License 2.0 | 5 votes |
ReflectionPropertyHandler(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, PropertyGetter.NullValuePolicy nullValuePolicy, Class entityClass, Method m, Field f) { super(objectFactory, stringValueResolver, nullValuePolicy); init(entityClass, m, f); }
Example 11
Source File: ListPropertySetter.java From java-tool with Apache License 2.0 | 4 votes |
public ListPropertySetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class<?> itemType) { super(objectFactory, stringValueResolver, itemType); setNullValuePolicy(PropertyGetter.NullValuePolicy.CREATE_NEW); }
Example 12
Source File: ReflectionPropertyHandler.java From java-tool with Apache License 2.0 | 4 votes |
ReflectionPropertyHandler(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class entityClass, Method m, Field f) { super(objectFactory, stringValueResolver); init(entityClass, m, f); }
Example 13
Source File: ListPropertyHandler.java From java-tool with Apache License 2.0 | 4 votes |
ListPropertyHandler(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class<?> itemType) { super(objectFactory, stringValueResolver); this.itemType = $.requireNotNull(itemType); }
Example 14
Source File: AdaptiveMapPropertyGetter.java From java-tool with Apache License 2.0 | 4 votes |
public AdaptiveMapPropertyGetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class<?> keyType, Class<?> valType) { super(objectFactory, stringValueResolver, keyType, valType); }
Example 15
Source File: ListPropertyGetter.java From java-tool with Apache License 2.0 | 4 votes |
public ListPropertyGetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class<?> itemType) { super(objectFactory, stringValueResolver, itemType); }
Example 16
Source File: PropertyHandlerBase.java From java-tool with Apache License 2.0 | 4 votes |
@Override public void setStringValueResolver(Lang.Func2<String, Class<?>, ?> stringValueResolver) { this.stringValueResolver = $.requireNotNull(stringValueResolver); }
Example 17
Source File: ReflectionPropertySetter.java From java-tool with Apache License 2.0 | 4 votes |
public ReflectionPropertySetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class entityClass, Method m, Field f) { super(objectFactory, stringValueResolver, PropertyGetter.NullValuePolicy.CREATE_NEW, entityClass, m, f); }
Example 18
Source File: MapPropertyGetter.java From java-tool with Apache License 2.0 | 4 votes |
public MapPropertyGetter(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver, Class<?> keyType, Class<?> valType) { super(objectFactory, stringValueResolver, keyType, valType); }
Example 19
Source File: PropertyHandlerBase.java From java-tool with Apache License 2.0 | 4 votes |
PropertyHandlerBase(Lang.Function<Class<?>, Object> objectFactory, Lang.Func2<String, Class<?>, ?> stringValueResolver) { setObjectFactory(objectFactory); setStringValueResolver(stringValueResolver); setNullValuePolicy(PropertyGetter.NullValuePolicy.RETURN_NULL); }
Example 20
Source File: PropertyHandler.java From java-tool with Apache License 2.0 | votes |
void setStringValueResolver(Lang.Func2<String, Class<?>, ?> stringValueResolver);