CompareToBuilder | append(Object lhs, 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(long lhs, long rhs) Appends to the builder the comparison of two long s. |
CompareToBuilder | append(int lhs, int rhs) Appends to the builder the comparison of two int s. |
CompareToBuilder | append(short lhs, short rhs) Appends to the builder the comparison of two short s. |
CompareToBuilder | append(char lhs, char rhs) Appends to the builder the comparison of two char s. |
CompareToBuilder | append(byte lhs, byte rhs) Appends to the builder the comparison of two byte s. |
CompareToBuilder | append(double lhs, 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(float lhs, 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(boolean lhs, boolean rhs) Appends to the builder the comparison of two booleans s. |
CompareToBuilder | append(Object[] lhs, 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(long[] lhs, 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(int[] lhs, 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(short[] lhs, 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(char[] lhs, 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(byte[] lhs, 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(double[] lhs, 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(float[] lhs, 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(boolean[] lhs, 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(Object lhs, Object rhs, 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(Object[] lhs, Object[] rhs, 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(int superCompareTo)
Appends to the builder the compareTo(Object) result of the superclass. |
int | reflectionCompare(Object lhs, Object rhs)
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. |