Return-Path:
* A registry of objects used by reflection methods to detect cyclical object references and avoid infinite loops.
*
* Converters value pair into a register pair. *
- * + * * @param lhsthis
object
* @param rhs the other object
- *
- * @return
+ *
+ * @return the pair
*/
static Pairthis
object to lookup in registry
* @param rhs the other object to lookup on registry
* @return boolean true
if the registry contains the given object.
@@ -170,7 +170,7 @@ public class EqualsBuilder implements Bu
* Registers the given object pair.
* Used by the reflection methods to avoid infinite loops.
*
- *
+ *
* @param lhs this
object to register
* @param rhs the other object to register
*/
@@ -190,10 +190,10 @@ public class EqualsBuilder implements Bu
* * Unregisters the given object pair. *
- * + * *
* Used by the reflection methods to avoid infinite loops.
- *
+ *
* @param lhs this
object to unregister
* @param rhs the other object to unregister
* @since 3.0
@@ -212,7 +212,7 @@ public class EqualsBuilder implements Bu
}
}
}
-
+
/**
* If the fields tested are equals.
* The default value is true
.
@@ -386,9 +386,9 @@ public class EqualsBuilder implements Bu
if (lhs == null || rhs == null) {
return false;
}
- // Find the leaf class since there may be transients in the leaf
+ // Find the leaf class since there may be transients in the leaf
// class or in classes between the leaf and root.
- // If we are not testing transients or a subclass has no ivars,
+ // If we are not testing transients or a subclass has no ivars,
// then a subclass can test equals to a superclass.
Class> lhsClass = lhs.getClass();
Class> rhsClass = rhs.getClass();
@@ -418,7 +418,7 @@ public class EqualsBuilder implements Bu
}
} catch (IllegalArgumentException e) {
// In this case, we tried to test a subclass vs. a superclass and
- // the subclass has ivars or the ivars are transient and
+ // the subclass has ivars or the ivars are transient and
// we are testing transients.
// If a subclass has ivars that we are trying to test them, we get an
// exception and we know that the objects are not equal.
@@ -430,7 +430,7 @@ public class EqualsBuilder implements Bu
/**
*
Appends the fields and values defined by the given object of the * given Class.
- * + * * @param lhs the left hand object * @param rhs the right hand object * @param clazz the class to append details of @@ -445,11 +445,11 @@ public class EqualsBuilder implements Bu EqualsBuilder builder, boolean useTransients, String[] excludeFields) { - + if (isRegistered(lhs, rhs)) { return; } - + try { register(lhs, rhs); Field[] fields = clazz.getDeclaredFields(); @@ -517,7 +517,7 @@ public class EqualsBuilder implements Bu // The simple case, not an array, just test the element isEquals = lhs.equals(rhs); } else if (lhs.getClass() != rhs.getClass()) { - // Here when we compare different dimensions, for example: a boolean[][] to a boolean[] + // Here when we compare different dimensions, for example: a boolean[][] to a boolean[] this.setEquals(false); } // 'Switch' on type of array, to dispatch to the correct handler @@ -549,7 +549,7 @@ public class EqualsBuilder implements Bu *
* Test if two long
s are equal.
*
long
* @param rhs
@@ -967,14 +967,14 @@ public class EqualsBuilder implements Bu
public boolean isEquals() {
return this.isEquals;
}
-
+
/**
* Returns true
if the fields that have been checked
* are all equal.
true
if all of the fields that have been checked
* are equal, false
otherwise.
- *
+ *
* @since 3.0
*/
public Boolean build() {
@@ -983,7 +983,7 @@ public class EqualsBuilder implements Bu
/**
* Sets the isEquals
value.
- *
+ *
* @param isEquals The value to set.
* @since 2.1
*/