@Test public void testSet() { GameMatrixImpl matrix = new GameMatrixImpl(); byte value = matrix.get(0, 0); assertEquals(GameMatrix.UNSET, value); matrix.set(0,0,(byte)4); value = matrix.get(0, 0); assertEquals(4, value); }
@Override public void set(final int row, final int column, final byte value) { assert validCoords(row, column); assert validValue(value) : "Value out of range: " + value; data[row][column] = value; }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public void set(final int row, final int column, final byte value) { assert validCoords(row, column); assert validValue(value) : "Value out of range: " + value; data[row][column] = value; } }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public void set(final int row, final int column, final byte value) { assert validCoords(row, column); assert validValue(value) : "Value out of range: " + value; data[row][column] = value; } GameMatrixImpl(); }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public void set(final int row, final int column, final byte value) { assert validCoords(row, column); assert validValue(value) : "Value out of range: " + value; data[row][column] = value; } 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 void set(final int row, final int column, final byte value) { assert validCoords(row, column); assert validValue(value) : "Value out of range: " + value; data[row][column] = value; } 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);  }