Lines Matching refs:rhs
44 * MyClass rhs = (MyClass) obj;
47 * .append(field1, rhs.field1)
48 * .append(field2, rhs.field2)
49 * .append(field3, rhs.field3)
112 * @param rhs the other object
115 public static boolean reflectionEquals(Object lhs, Object rhs) {
116 return reflectionEquals(lhs, rhs, false, null, null);
134 * @param rhs the other object
138 public static boolean reflectionEquals(Object lhs, Object rhs, String[] excludeFields) {
139 return reflectionEquals(lhs, rhs, false, null, excludeFields);
158 * @param rhs the other object
162 public static boolean reflectionEquals(Object lhs, Object rhs, boolean testTransients) {
163 return reflectionEquals(lhs, rhs, testTransients, null, null);
184 * @param rhs the other object
191 public static boolean reflectionEquals(Object lhs, Object rhs, boolean testTransients, Class reflectUpToClass) {
192 return reflectionEquals(lhs, rhs, testTransients, reflectUpToClass, null);
213 * @param rhs the other object
221 public static boolean reflectionEquals(Object lhs, Object rhs, boolean testTransients, Class reflectUpToClass,
223 if (lhs == rhs) {
226 if (lhs == null || rhs == null) {
234 Class rhsClass = rhs.getClass();
236 if (lhsClass.isInstance(rhs)) {
244 if (!lhsClass.isInstance(rhs)) {
254 reflectionAppend(lhs, rhs, testClass, equalsBuilder, testTransients, excludeFields);
257 reflectionAppend(lhs, rhs, testClass, equalsBuilder, testTransients, excludeFields);
275 * @param rhs the right hand object
283 Object rhs,
298 builder.append(f.get(lhs), f.get(rhs));
332 * @param rhs the right hand object
335 public EqualsBuilder append(Object lhs, Object rhs) {
339 if (lhs == rhs) {
342 if (lhs == null || rhs == null) {
348 if (lhs instanceof java.math.BigDecimal && rhs instanceof java.math.BigDecimal) {
349 isEquals = (((java.math.BigDecimal) lhs).compareTo((java.math.BigDecimal) rhs) == 0);
352 isEquals = lhs.equals(rhs);
354 } else if (lhs.getClass() != rhs.getClass()) {
361 append((long[]) lhs, (long[]) rhs);
363 append((int[]) lhs, (int[]) rhs);
365 append((short[]) lhs, (short[]) rhs);
367 append((char[]) lhs, (char[]) rhs);
369 append((byte[]) lhs, (byte[]) rhs);
371 append((double[]) lhs, (double[]) rhs);
373 append((float[]) lhs, (float[]) rhs);
375 append((boolean[]) lhs, (boolean[]) rhs);
378 append((Object[]) lhs, (Object[]) rhs);
390 * @param rhs
394 public EqualsBuilder append(long lhs, long rhs) {
398 isEquals = (lhs == rhs);
406 * @param rhs the right hand <code>int</code>
409 public EqualsBuilder append(int lhs, int rhs) {
413 isEquals = (lhs == rhs);
421 * @param rhs the right hand <code>short</code>
424 public EqualsBuilder append(short lhs, short rhs) {
428 isEquals = (lhs == rhs);
436 * @param rhs the right hand <code>char</code>
439 public EqualsBuilder append(char lhs, char rhs) {
443 isEquals = (lhs == rhs);
451 * @param rhs the right hand <code>byte</code>
454 public EqualsBuilder append(byte lhs, byte rhs) {
458 isEquals = (lhs == rhs);
472 * @param rhs the right hand <code>double</code>
475 public EqualsBuilder append(double lhs, double rhs) {
479 return append(Double.doubleToLongBits(lhs), Double.doubleToLongBits(rhs));
492 * @param rhs the right hand <code>float</code>
495 public EqualsBuilder append(float lhs, float rhs) {
499 return append(Float.floatToIntBits(lhs), Float.floatToIntBits(rhs));
506 * @param rhs the right hand <code>boolean</code>
509 public EqualsBuilder append(boolean lhs, boolean rhs) {
513 isEquals = (lhs == rhs);
524 * @param rhs the right hand <code>Object[]</code>
527 public EqualsBuilder append(Object[] lhs, Object[] rhs) {
531 if (lhs == rhs) {
534 if (lhs == null || rhs == null) {
538 if (lhs.length != rhs.length) {
543 append(lhs[i], rhs[i]);
555 * @param rhs the right hand <code>long[]</code>
558 public EqualsBuilder append(long[] lhs, long[] rhs) {
562 if (lhs == rhs) {
565 if (lhs == null || rhs == null) {
569 if (lhs.length != rhs.length) {
574 append(lhs[i], rhs[i]);
586 * @param rhs the right hand <code>int[]</code>
589 public EqualsBuilder append(int[] lhs, int[] rhs) {
593 if (lhs == rhs) {
596 if (lhs == null || rhs == null) {
600 if (lhs.length != rhs.length) {
605 append(lhs[i], rhs[i]);
617 * @param rhs the right hand <code>short[]</code>
620 public EqualsBuilder append(short[] lhs, short[] rhs) {
624 if (lhs == rhs) {
627 if (lhs == null || rhs == null) {
631 if (lhs.length != rhs.length) {
636 append(lhs[i], rhs[i]);
648 * @param rhs the right hand <code>char[]</code>
651 public EqualsBuilder append(char[] lhs, char[] rhs) {
655 if (lhs == rhs) {
658 if (lhs == null || rhs == null) {
662 if (lhs.length != rhs.length) {
667 append(lhs[i], rhs[i]);
679 * @param rhs the right hand <code>byte[]</code>
682 public EqualsBuilder append(byte[] lhs, byte[] rhs) {
686 if (lhs == rhs) {
689 if (lhs == null || rhs == null) {
693 if (lhs.length != rhs.length) {
698 append(lhs[i], rhs[i]);
710 * @param rhs the right hand <code>double[]</code>
713 public EqualsBuilder append(double[] lhs, double[] rhs) {
717 if (lhs == rhs) {
720 if (lhs == null || rhs == null) {
724 if (lhs.length != rhs.length) {
729 append(lhs[i], rhs[i]);
741 * @param rhs the right hand <code>float[]</code>
744 public EqualsBuilder append(float[] lhs, float[] rhs) {
748 if (lhs == rhs) {
751 if (lhs == null || rhs == null) {
755 if (lhs.length != rhs.length) {
760 append(lhs[i], rhs[i]);
772 * @param rhs the right hand <code>boolean[]</code>
775 public EqualsBuilder append(boolean[] lhs, boolean[] rhs) {
779 if (lhs == rhs) {
782 if (lhs == null || rhs == null) {
786 if (lhs.length != rhs.length) {
791 append(lhs[i], rhs[i]);