public class EqualsBuilder extends Object
Object.equals(Object)
which compares object
identity for those objects. This is also the behaviour of Commons Lang. You
can modify this to reflect into any reachable object that does not override equals by
enabling the defaultDeepReflect property.
Transient fields are not compared by the current implementation of this
class.Constructor and Description |
---|
EqualsBuilder() |
Modifier and Type | Method and Description |
---|---|
EqualsBuilder |
append(boolean[] lhs,
boolean[] rhs) |
EqualsBuilder |
append(boolean lhs,
boolean rhs) |
EqualsBuilder |
append(byte[] lhs,
byte[] rhs) |
EqualsBuilder |
append(byte lhs,
byte rhs) |
EqualsBuilder |
append(char[] lhs,
char[] rhs) |
EqualsBuilder |
append(char lhs,
char rhs) |
EqualsBuilder |
append(double[] lhs,
double[] rhs) |
EqualsBuilder |
append(double lhs,
double rhs) |
EqualsBuilder |
append(float[] lhs,
float[] rhs) |
EqualsBuilder |
append(float lhs,
float rhs) |
EqualsBuilder |
append(int[] lhs,
int[] rhs) |
EqualsBuilder |
append(int lhs,
int rhs) |
EqualsBuilder |
append(long[] lhs,
long[] rhs) |
EqualsBuilder |
append(long lhs,
long rhs) |
EqualsBuilder |
append(Object[] lhs,
Object[] rhs) |
EqualsBuilder |
append(Object lhs,
Object rhs) |
EqualsBuilder |
append(short[] lhs,
short[] rhs) |
EqualsBuilder |
append(short lhs,
short rhs) |
boolean |
isEquals() |
static boolean |
reflectionEquals(Object lhs,
Object rhs) |
void |
reset() |
EqualsBuilder |
withClassAccessFactory(ClassAccessFactory classAccessFactory) |
EqualsBuilder |
withDefaultDeepReflect(boolean newDefaultDeepReflect) |
public EqualsBuilder()
public EqualsBuilder withDefaultDeepReflect(boolean newDefaultDeepReflect)
public EqualsBuilder withClassAccessFactory(ClassAccessFactory classAccessFactory)
public static boolean reflectionEquals(Object lhs, Object rhs)
public EqualsBuilder append(Object lhs, Object rhs)
public EqualsBuilder append(long lhs, long rhs)
public EqualsBuilder append(int lhs, int rhs)
public EqualsBuilder append(short lhs, short rhs)
public EqualsBuilder append(char lhs, char rhs)
public EqualsBuilder append(byte lhs, byte rhs)
public EqualsBuilder append(double lhs, double rhs)
public EqualsBuilder append(float lhs, float rhs)
public EqualsBuilder append(boolean lhs, boolean rhs)
public EqualsBuilder append(Object[] lhs, Object[] rhs)
public EqualsBuilder append(long[] lhs, long[] rhs)
public EqualsBuilder append(int[] lhs, int[] rhs)
public EqualsBuilder append(short[] lhs, short[] rhs)
public EqualsBuilder append(char[] lhs, char[] rhs)
public EqualsBuilder append(byte[] lhs, byte[] rhs)
public EqualsBuilder append(double[] lhs, double[] rhs)
public EqualsBuilder append(float[] lhs, float[] rhs)
public EqualsBuilder append(boolean[] lhs, boolean[] rhs)
public boolean isEquals()
public void reset()
Copyright © 2010–2018 Jadira Systems. All rights reserved.