@Test public void testEqualsWithUnequalMatrix() { byte[][] matrix1 = QuadraticArrays.parse( "000000000", "000000000", "000000000", "000000000", "000000000", "000000000", "000000000", "000000000", "000000000" ); GameMatrixImpl instance1 = new GameMatrixImpl(); instance1.setAll(matrix1); byte[][] matrix2 = QuadraticArrays.parse( "123000000", "000000000", "000000000", "000000000", "000000000", "000000000", "000000000", "000000000", "000000000" ); GameMatrixImpl instance2 = new GameMatrixImpl(); instance2.setAll(matrix2); assertNotEquals(instance1, instance2); }
@Override public final void setAll(final byte[][] initializationData) { for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { set(j, i, initializationData[j][i]); } } }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public final void setAll(final byte[][] initializationData) { for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { set(j, i, initializationData[j][i]); } } } }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public final void setAll(final byte[][] initializationData) { for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { set(j, i, initializationData[j][i]); } } } GameMatrixImpl(); }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public final void setAll(final byte[][] initializationData) { for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { set(j, i, initializationData[j][i]); } } } GameMatrixImpl(); @Override final void setAll(final byte[][] initializationData); @Override final void clear(); @Override final byte get(final int row, final int column); @Override void set(final int row, final int column, final byte value); @Override int getSetCount(); @Override final byte[][] getArray(); @Override final String toString(); @Override int hashCode(); @Override final boolean equals(final Object obj); @Override Object clone(); @Override final boolean isValid(); @Override int getFreeMask(
            final int row,
            final int column); @Override final boolean canSet(
            final int row,
            final int column,
            final byte value); }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public final void setAll(final byte[][] initializationData) { for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { set(j, i, initializationData[j][i]); } } } GameMatrixImpl(); @Override final void setAll(final byte[][] initializationData); @Override final void clear(); @Override final byte get(final int row, final int column); @Override void set(final int row, final int column, final byte value); @Override int getSetCount(); @Override final byte[][] getArray(); @Override final String toString(); @Override int hashCode(); @Override final boolean equals(final Object obj); @Override Object clone(); @Override final boolean isValid(); @Override int getFreeMask(
            final int row,
            final int column); @Override final boolean canSet(
            final int row,
            final int column,
            final byte value);  }