BitMatrix

public final class BitMatrix

The BitMatrix class represents a two-dimensional array of booleans. It uses a single instance of the BitArray class to store the values.

Constructors

Link copied to clipboard
public BitMatrix BitMatrix(Integer rows, Integer columns)

Functions

Link copied to clipboard
public final Boolean get(Integer r, Integer c)

Gets the value in row r and column c.

Link copied to clipboard
public final IntRange getColumnIndices()
Link copied to clipboard
public final Integer getColumns()

Amount of columns in the matrix.

Link copied to clipboard
public final IntRange getRowIndices()
Link copied to clipboard
public final Integer getRows()

Amount of rows in the matrix.

Link copied to clipboard
public final Unit set(Integer r, Integer c, Boolean value)

Sets the value in row r and column c.

Properties

Link copied to clipboard
private final IntRange columnIndices

The range of valid columns in the matrix.

Link copied to clipboard
private final Integer columns

Amount of columns in the matrix.

Link copied to clipboard
private final IntRange rowIndices

The range of valid rows in the matrix.

Link copied to clipboard
private final Integer rows

Amount of rows in the matrix.