Class AbstractSparseBooleanMatrix2D

    • Constructor Detail

      • AbstractSparseBooleanMatrix2D

        public AbstractSparseBooleanMatrix2D​(long rows,
                                             long columns)
    • Method Detail

      • getBoolean

        public final boolean getBoolean​(long... coordinates)
        Description copied from interface: BooleanMatrix
        Returns a byte representation of an entry in the matrix. The stored value will be converted to a boolean as good as possible.
        Specified by:
        getBoolean in interface BooleanMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a boolean representation of the entry @
      • setBoolean

        public final void setBoolean​(boolean value,
                                     long... coordinates)
        Description copied from interface: BooleanMatrix
        Sets an entry in the matrix to a boolean value. If the matrix cannot store byte values, the value will be represented as good as possible.
        Specified by:
        setBoolean in interface BooleanMatrix
        Parameters:
        value - boolean value
        coordinates - location of the entry @