com.tapas.evidence.utility
Class FieldUtils
java.lang.Object
com.tapas.evidence.utility.FieldUtils
public final class FieldUtils
- extends Object
- Since:
- 1.0.0
- Author:
- Michal Bocek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getAllFields
public static Field[] getAllFields(Class objectClass,
Field[] fields)
throws ClassNotFoundException
- Get all fields (private, protected, public) included inherited fields.
- Parameters:
objectClass
- fields
-
- Returns:
-
- Throws:
ClassNotFoundException
getFields
public static Field[] getFields(Class objectClass,
Field[] fields)
- Get all fields (private, protected, public) for object except inherited fields.
- Parameters:
objectClass
- fields
-
- Returns:
setField
public static void setField(Object object,
String fieldName,
Object value)
throws NoSuchFieldException,
IllegalAccessException
- Throws:
NoSuchFieldException
IllegalAccessException
Copyright © 2013. All Rights Reserved.