Class BeanUtils
java.lang.Object
org.deltava.util.BeanUtils
A utility class to perform java bean operations.
- Since:
- 7.4
- Version:
- 11.1
- Author:
- Luke
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Serializable>
Tclone
(T obj) Deep clones an object by serializing and deserializing it.static List
<BeanUtils.PropertyChange> Compares two beans and determines what fields have changed.
-
Method Details
-
clone
Deep clones an object by serializing and deserializing it.- Parameters:
obj
- the object- Returns:
- a clone of the object
-
getDelta
Compares two beans and determines what fields have changed.- Parameters:
o
- the old bean valuen
- the new bean valueignoredFields
- a list of fields to ignore- Returns:
- a Collection of PropertyChange beans
-