Beispiel #1
0
 @Override
 public MatrixSet<E> clone() {
   MatrixSet<E> output = new MatrixSet<E>(mapping);
   System.arraycopy(matrix, 0, output.matrix, 0, matrix.length);
   output.size = size;
   return output;
 }
Beispiel #2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    MatrixSet rules = (MatrixSet) o;
    if (size != rules.size()) {
      return false;
    }

    if (!Arrays.equals(matrix, rules.matrix)) return false;

    return true;
  }