Example usage for org.apache.commons.lang3.builder EqualsBuilder reflectionEquals

List of usage examples for org.apache.commons.lang3.builder EqualsBuilder reflectionEquals

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder EqualsBuilder reflectionEquals.

Prototype

public static boolean reflectionEquals(final Object lhs, final Object rhs, final boolean testTransients,
        final Class<?> reflectUpToClass, final String... excludeFields) 

Source Link

Document

This method uses reflection to determine if the two Objects are equal.

It uses AccessibleObject.setAccessible to gain access to private fields.

Usage

From source file:gov.ca.cwds.cals.persistence.model.calsns.dictionaries.LicenseStatusType.java

@Override
public boolean equals(Object o) {
    return EqualsBuilder.reflectionEquals(this, o, "isActive", "cwsId", "lisId");
}

From source file:com.mirth.connect.model.CodeTemplate.java

@Override
public boolean equals(Object obj) {
    return EqualsBuilder.reflectionEquals(this, obj, false, null, "DEFAULT_CODE");
}

From source file:org.segrada.model.User.java

@Override
public boolean equals(Object that) {
    return that != null && this.getClass() == that.getClass()
            && EqualsBuilder.reflectionEquals(this, that, "created", "modified", "lastLogin");
}