Operation |
Details |
private checkAllFieldsForClass( Class theClass, Object o1, Object o2):void |
Sequential Tags: | throws=IllegalAccessException
| |
private compareObjects( Object fieldValue1, Object fieldValue2, String fieldname, String enclosingClass):void |
Sequential Tags: | throws=IllegalAccessException
| |
protected equals( Object obj1, Object obj2):boolean |
Sequential Notes: | Compares two objects dealing also with null values. @param o1 The first object to compare. @param o2 The second object to compare. @return true if the two objects are equal otherwise false. | |
public getDiffs():List |
Sequential Notes: | Gets the list of differences between the two objects. @return the list of differences. If no differences were detected an empty list is returned. | |
private getFieldNames():String |
Sequential |
public isEqual():boolean |
Sequential Notes: | Checks whether the two objects are equal. @return true if the two objects are equal otherwise false. | |
private isSimpleComparableType( Object object):boolean |
Sequential |
public ObjectComparator( Object o1, Object o2): |
Sequential Tags: | throws=IllegalAccessException
| Notes: | Creates a new ObjectComparator instance that compares the two given objects. Note: Compare also works with null values. | |
public toString():String |
Sequential Notes: | Returns a String with one line for each difference. @return the string represtation of the differences between the compared objects. | |