Package | Description |
---|---|
org.apache.commons.lang3.builder |
Assists in creating consistent
equals(Object) , toString() , hashCode() , and compareTo(Object) methods. |
Modifier and Type | Method and Description |
---|---|
EqualsBuilder |
EqualsBuilder.append(boolean[] lhs,
boolean[] rhs)
Deep comparison of array of
boolean . |
EqualsBuilder |
EqualsBuilder.append(boolean lhs,
boolean rhs)
Test if two
booleans s are equal. |
EqualsBuilder |
EqualsBuilder.append(byte[] lhs,
byte[] rhs)
Deep comparison of array of
byte . |
EqualsBuilder |
EqualsBuilder.append(byte lhs,
byte rhs)
Test if two
byte s are equal. |
EqualsBuilder |
EqualsBuilder.append(char[] lhs,
char[] rhs)
Deep comparison of array of
char . |
EqualsBuilder |
EqualsBuilder.append(char lhs,
char rhs)
Test if two
char s are equal. |
EqualsBuilder |
EqualsBuilder.append(double[] lhs,
double[] rhs)
Deep comparison of array of
double . |
EqualsBuilder |
EqualsBuilder.append(double lhs,
double rhs)
Test if two
double s are equal by testing that the
pattern of bits returned by doubleToLong are equal. |
EqualsBuilder |
EqualsBuilder.append(float[] lhs,
float[] rhs)
Deep comparison of array of
float . |
EqualsBuilder |
EqualsBuilder.append(float lhs,
float rhs)
Test if two
float s are equal byt testing that the
pattern of bits returned by doubleToLong are equal. |
EqualsBuilder |
EqualsBuilder.append(int[] lhs,
int[] rhs)
Deep comparison of array of
int . |
EqualsBuilder |
EqualsBuilder.append(int lhs,
int rhs)
Test if two
int s are equal. |
EqualsBuilder |
EqualsBuilder.append(long[] lhs,
long[] rhs)
Deep comparison of array of
long . |
EqualsBuilder |
EqualsBuilder.append(long lhs,
long rhs)
Test if two
long s are equal. |
EqualsBuilder |
EqualsBuilder.append(Object[] lhs,
Object[] rhs)
Performs a deep comparison of two
Object arrays. |
EqualsBuilder |
EqualsBuilder.append(Object lhs,
Object rhs)
Test if two
Object s are equal using either
#reflectionAppend(Object, Object) , if object are non
primitives (or wrapper of primitives) or if field testRecursive
is set to false . |
EqualsBuilder |
EqualsBuilder.append(short[] lhs,
short[] rhs)
Deep comparison of array of
short . |
EqualsBuilder |
EqualsBuilder.append(short lhs,
short rhs)
Test if two
short s are equal. |
EqualsBuilder |
EqualsBuilder.appendSuper(boolean superEquals)
Adds the result of
super.equals() to this builder. |
EqualsBuilder |
EqualsBuilder.reflectionAppend(Object lhs,
Object rhs)
Tests if two
objects by using reflection. |
EqualsBuilder |
EqualsBuilder.setBypassReflectionClasses(List<Class<?>> bypassReflectionClasses)
Set
Class es whose instances should be compared by calling their equals
although being in recursive mode. |
EqualsBuilder |
EqualsBuilder.setExcludeFields(String... excludeFields)
Set field names to be excluded by reflection tests.
|
EqualsBuilder |
EqualsBuilder.setReflectUpToClass(Class<?> reflectUpToClass)
Set the superclass to reflect up to at reflective tests.
|
EqualsBuilder |
EqualsBuilder.setTestRecursive(boolean testRecursive)
Set whether to include transient fields when reflectively comparing objects.
|
EqualsBuilder |
EqualsBuilder.setTestTransients(boolean testTransients)
Set whether to include transient fields when reflectively comparing objects.
|
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.