Exemplo n.º 1
0
 @Override
 public boolean equals(Object other) {
   return Equal.equals0(Tree.class, this, other, () -> Equal.treeEqual(Equal.anyEqual()));
 }
Exemplo n.º 2
0
 /**
  * Perform an equality test on this list which delegates to the .equals() method of the member
  * instances. This is implemented with Equal.nonEmptyListEqual using the anyEqual rule.
  *
  * @param obj the other object to check for equality against.
  * @return true if this list is equal to the provided argument
  */
 @Override
 public boolean equals(final Object obj) {
   return Equal.equals0(
       NonEmptyList.class, this, obj, () -> Equal.nonEmptyListEqual(Equal.<A>anyEqual()));
 }