org.jtheque.utils.bean
Class BeanUtils
java.lang.Object
org.jtheque.utils.bean.BeanUtils
public final class BeanUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createQuickMemento
public static <T> T createQuickMemento(T bean,
String... fields)
- Create a quick memento using the specified fields.
- Type Parameters:
T
- The type of data.- Parameters:
bean
- The bean to create the memento from.fields
- The fields to use.
- Returns:
- A memento of the bean.
restoreQuickMemento
public static void restoreQuickMemento(Object bean,
Object memento,
String... fields)
- Restore the quick memento to the bean.
- Parameters:
bean
- The bean to restore.memento
- The memento to restore.fields
- The fields to use.
set
public static void set(Object bean,
String field,
Object value)
get
public static <T> T get(Object bean,
String field)
getStatic
public static <T> T getStatic(Class<?> aClass,
String field)
Copyright © 2010 JTheque. All Rights Reserved.