@Test public void testRoundToBlock() { assertEquals(0, GameMatrixImpl.roundToBlock(0)); assertEquals(0, GameMatrixImpl.roundToBlock(1)); assertEquals(0, GameMatrixImpl.roundToBlock(2)); assertEquals(3, GameMatrixImpl.roundToBlock(3)); assertEquals(3, GameMatrixImpl.roundToBlock(4)); assertEquals(3, GameMatrixImpl.roundToBlock(5)); assertEquals(6, GameMatrixImpl.roundToBlock(6)); assertEquals(6, GameMatrixImpl.roundToBlock(7)); assertEquals(6, GameMatrixImpl.roundToBlock(8)); }
protected static int roundToBlock(final int in) { return in - in % BLOCK_SIZE; }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { protected static int roundToBlock(final int in) { return in - in % BLOCK_SIZE; } }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { protected static int roundToBlock(final int in) { return in - in % BLOCK_SIZE; } GameMatrixImpl(); }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { protected static int roundToBlock(final int in) { return in - in % BLOCK_SIZE; } 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 { protected static int roundToBlock(final int in) { return in - in % BLOCK_SIZE; } 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);  }