예제 #1
0
 @Override
 public boolean equals(final Object obj) {
   return Equality.of(this, obj)
       .test(
           c -> {
             boolean equals = length() == c.length();
             for (int i = 0, n = length(); equals && i < n; ++i) {
               equals = getGene(i) == c.getGene(i);
             }
             return equals;
           });
 }
 @Override
 public boolean equals(final Object obj) {
   return Equality.of(this, obj).test(dist -> eq(_domain, dist._domain));
 }