public class MethodsCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
MethodsCache.SettersHolder |
Constructor and Description |
---|
MethodsCache(java.lang.Class clazz) |
Modifier and Type | Method and Description |
---|---|
protected java.util.function.Function |
createGetter(java.lang.Class clazz,
java.lang.reflect.Method method) |
protected java.util.function.BiConsumer |
createSetter(java.lang.Class clazz,
java.lang.reflect.Method method) |
java.util.function.Function |
getGetterNN(java.lang.String property) |
java.util.function.BiConsumer |
getSetterNN(java.lang.String property) |
java.lang.Object |
invokeGetter(java.lang.Object object,
java.lang.String property) |
void |
invokeSetter(java.lang.Object object,
java.lang.String property,
java.lang.Object value) |
protected java.util.function.Function createGetter(java.lang.Class clazz, java.lang.reflect.Method method)
protected java.util.function.BiConsumer createSetter(java.lang.Class clazz, java.lang.reflect.Method method)
public java.lang.Object invokeGetter(java.lang.Object object, java.lang.String property)
public void invokeSetter(java.lang.Object object, java.lang.String property, java.lang.Object value)
public java.util.function.Function getGetterNN(java.lang.String property)
property
- name of property associated with getterFunction
which represents getterjava.lang.IllegalArgumentException
- if getter for property not foundpublic java.util.function.BiConsumer getSetterNN(java.lang.String property)
property
- name of property associated with setterBiConsumer
which represents setterjava.lang.IllegalArgumentException
- if setter for property not found