Uses of Class
org.apache.commons.lang3.builder.EqualsBuilder
Package
Description
Assists in creating consistent
equals(Object)
, toString()
, hashCode()
, and compareTo(Object)
methods.-
Uses of EqualsBuilder in org.apache.commons.lang3.builder
Modifier and TypeMethodDescriptionEqualsBuilder.append
(boolean[] lhs, boolean[] rhs) Deep comparison of array ofboolean
.EqualsBuilder.append
(boolean lhs, boolean rhs) Test if twobooleans
s are equal.EqualsBuilder.append
(byte[] lhs, byte[] rhs) Deep comparison of array ofbyte
.EqualsBuilder.append
(byte lhs, byte rhs) Test if twobyte
s are equal.EqualsBuilder.append
(char[] lhs, char[] rhs) Deep comparison of array ofchar
.EqualsBuilder.append
(char lhs, char rhs) Test if twochar
s are equal.EqualsBuilder.append
(double[] lhs, double[] rhs) Deep comparison of array ofdouble
.EqualsBuilder.append
(double lhs, double rhs) Test if twodouble
s are equal by testing that the pattern of bits returned bydoubleToLong
are equal.EqualsBuilder.append
(float[] lhs, float[] rhs) Deep comparison of array offloat
.EqualsBuilder.append
(float lhs, float rhs) Test if twofloat
s are equal by testing that the pattern of bits returned by doubleToLong are equal.EqualsBuilder.append
(int[] lhs, int[] rhs) Deep comparison of array ofint
.EqualsBuilder.append
(int lhs, int rhs) Test if twoint
s are equal.EqualsBuilder.append
(long[] lhs, long[] rhs) Deep comparison of array oflong
.EqualsBuilder.append
(long lhs, long rhs) Test if twolong
s are equal.EqualsBuilder.append
(short[] lhs, short[] rhs) Deep comparison of array ofshort
.EqualsBuilder.append
(short lhs, short rhs) Test if twoshort
s are equal.Performs a deep comparison of twoObject
arrays.Test if twoObject
s are equal using either #reflectionAppend(Object, Object)
, if object are non primitives (or wrapper of primitives) or if fieldtestRecursive
is set tofalse
.EqualsBuilder.appendSuper
(boolean superEquals) Adds the result ofsuper.equals()
to this builder.EqualsBuilder.reflectionAppend
(Object lhs, Object rhs) Tests if twoobjects
by using reflection.EqualsBuilder.setBypassReflectionClasses
(List<Class<?>> bypassReflectionClasses) SetsClass
es whose instances should be compared by calling theirequals
although being in recursive mode.EqualsBuilder.setExcludeFields
(String... excludeFields) Sets field names to be excluded by reflection tests.EqualsBuilder.setReflectUpToClass
(Class<?> reflectUpToClass) Sets the superclass to reflect up to at reflective tests.EqualsBuilder.setTestRecursive
(boolean testRecursive) Sets whether to test fields recursively, instead of using their equals method, when reflectively comparing objects.EqualsBuilder.setTestTransients
(boolean testTransients) Sets whether to include transient fields when reflectively comparing objects.