CompareToBuilder | append(final Object lhs, final Object rhs)
Appends to the builder the comparison of two Object s. - Check if
lhs == rhs - Check if either
lhs or rhs is null , a null object is less than a non-null object - Check the object contents
lhs must either be an array or implement Comparable . |
CompareToBuilder | append(final long lhs, final long rhs) Appends to the builder the comparison of two long s. |
CompareToBuilder | append(final int lhs, final int rhs) Appends to the builder the comparison of two int s. |
CompareToBuilder | append(final short lhs, final short rhs) Appends to the builder the comparison of two short s. |
CompareToBuilder | append(final char lhs, final char rhs) Appends to the builder the comparison of two char s. |
CompareToBuilder | append(final byte lhs, final byte rhs) Appends to the builder the comparison of two byte s. |
CompareToBuilder | append(final double lhs, final double rhs)
Appends to the builder the comparison of two double s. This handles NaNs, Infinities, and -0.0 . It is compatible with the hash code generated by HashCodeBuilder . |
CompareToBuilder | append(final float lhs, final float rhs)
Appends to the builder the comparison of two float s. This handles NaNs, Infinities, and -0.0 . It is compatible with the hash code generated by HashCodeBuilder . |
CompareToBuilder | append(final boolean lhs, final boolean rhs) Appends to the builder the comparison of two booleans s. |
CompareToBuilder | append(final Object[] lhs, final Object[] rhs)
Appends to the builder the deep comparison of two Object arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a short length array is less than a long length array
- Check array contents element by element using #append(Object,Object,Comparator)
This method will also will be called for the top level of multi-dimensional, ragged, and multi-typed arrays. |
CompareToBuilder | append(final long[] lhs, final long[] rhs)
Appends to the builder the deep comparison of two long arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(long,long)
|
CompareToBuilder | append(final int[] lhs, final int[] rhs)
Appends to the builder the deep comparison of two int arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(int,int)
|
CompareToBuilder | append(final short[] lhs, final short[] rhs)
Appends to the builder the deep comparison of two short arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(short,short)
|
CompareToBuilder | append(final char[] lhs, final char[] rhs)
Appends to the builder the deep comparison of two char arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(char,char)
|
CompareToBuilder | append(final byte[] lhs, final byte[] rhs)
Appends to the builder the deep comparison of two byte arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(byte,byte)
|
CompareToBuilder | append(final double[] lhs, final double[] rhs)
Appends to the builder the deep comparison of two double arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(double,double)
|
CompareToBuilder | append(final float[] lhs, final float[] rhs)
Appends to the builder the deep comparison of two float arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(float,float)
|
CompareToBuilder | append(final boolean[] lhs, final boolean[] rhs)
Appends to the builder the deep comparison of two boolean arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a shorter length array is less than a longer length array
- Check array contents element by element using #append(boolean,boolean)
|
CompareToBuilder | append(final Object lhs, final Object rhs, final Comparator> comparator)
Appends to the builder the comparison of two Object s. - Check if
lhs == rhs - Check if either
lhs or rhs is null , a null object is less than a non-null object - Check the object contents
If lhs is an array, array comparison methods will be used. |
CompareToBuilder | append(final Object[] lhs, final Object[] rhs, final Comparator> comparator)
Appends to the builder the deep comparison of two Object arrays. - Check if arrays are the same using
== - Check if for
null , null is less than non-null - Check array length, a short length array is less than a long length array
- Check array contents element by element using #append(Object,Object,Comparator)
This method will also will be called for the top level of multi-dimensional, ragged, and multi-typed arrays. |
CompareToBuilder | appendSuper(final int superCompareTo)
Appends to the builder the compareTo(Object) result of the superclass. |
Integer | build() Returns a negative Integer, a positive Integer, or zero as the builder has judged the "left-hand" side as less than, greater than, or equal to the "right-hand" side. |
int | reflectionCompare(final Object lhs, final Object rhs)
Compares two Object s via reflection. Fields can be private, thus AccessibleObject.setAccessible is used to bypass normal access control checks. |
int | reflectionCompare(final Object lhs, final Object rhs, final boolean compareTransients)
Compares two Object s via reflection. Fields can be private, thus AccessibleObject.setAccessible is used to bypass normal access control checks. |
int | reflectionCompare(final Object lhs, final Object rhs, final Collection excludeFields)
Compares two Object s via reflection. Fields can be private, thus AccessibleObject.setAccessible is used to bypass normal access control checks. |
int | reflectionCompare(final Object lhs, final Object rhs, final String... excludeFields)
Compares two Object s via reflection. Fields can be private, thus AccessibleObject.setAccessible is used to bypass normal access control checks. |
int | toComparison() Returns a negative integer, a positive integer, or zero as the builder has judged the "left-hand" side as less than, greater than, or equal to the "right-hand" side. |