public class MethodCache extends Object
| Constructor | Description |
|---|---|
MethodCache() |
| Modifier and Type | Method | Description |
|---|---|---|
Method |
getGetMethod(Object object,
String fieldName) |
Returns the getter method for field on an object.
|
<T> Method |
getSetMethod(Object object,
String fieldName,
Class<?> argumentType) |
Returns the setter method for the field on an object.
|
public Method getGetMethod(Object object, String fieldName)
object - the objectfieldName - the field nameNullPointerException - if object or fieldName is nullSuperCsvReflectionException - if the getter doesn't exist or is not visiblepublic <T> Method getSetMethod(Object object, String fieldName, Class<?> argumentType)
T - the object typeobject - the objectfieldName - the field nameargumentType - the type to be passed to the setterNullPointerException - if object, fieldName or fieldType is nullSuperCsvReflectionException - if the setter doesn't exist or is not visibleCopyright © 2007–2018 Super CSV. All rights reserved.