@Test public void testGetArray() { byte[][] data = QuadraticArrays.parse( "100000000", "020100000", "000320100", "010000456", "000010000", "000000010", "001000000", "000001000", "000000001" ); GameMatrixImpl first = new GameMatrixImpl(); first.setAll(data); byte[][] a = first.getArray(); byte[][] b = first.getArray(); assertNotSame(a, b); assertTrue(Arrays.deepEquals(data, a)); assertTrue(Arrays.deepEquals(data, b)); }
@Override public final byte[][] getArray() { return QuadraticArrays.cloneArray(data); }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public final byte[][] getArray() { return QuadraticArrays.cloneArray(data); } }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public final byte[][] getArray() { return QuadraticArrays.cloneArray(data); } GameMatrixImpl(); }
GameMatrixImpl implements Cloneable, BitFreeMatrixInterface { @Override public final byte[][] getArray() { return QuadraticArrays.cloneArray(data); } 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 byte[][] getArray() { return QuadraticArrays.cloneArray(data); } 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);  }