@Test public void testNew() { GameMatrixImpl m = new GameMatrixImpl(); assertEquals(0, m.getSetCount()); }
@Override public int getSetCount() { int count = 0; for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { assert validValue(data[i][j]); if (data[i][j] != UNSET) { count++; } } } assert count >= 0 && count <= TOTAL_FIELDS; return count; }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public int getSetCount() { int count = 0; for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { assert validValue(data[i][j]); if (data[i][j] != UNSET) { count++; } } } assert count >= 0 && count <= TOTAL_FIELDS; return count; } }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public int getSetCount() { int count = 0; for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { assert validValue(data[i][j]); if (data[i][j] != UNSET) { count++; } } } assert count >= 0 && count <= TOTAL_FIELDS; return count; } GameMatrixImpl(); }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public int getSetCount() { int count = 0; for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { assert validValue(data[i][j]); if (data[i][j] != UNSET) { count++; } } } assert count >= 0 && count <= TOTAL_FIELDS; return count; } 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 int getSetCount() { int count = 0; for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { assert validValue(data[i][j]); if (data[i][j] != UNSET) { count++; } } } assert count >= 0 && count <= TOTAL_FIELDS; return count; } 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);  }