Class AbstractCharMatrix

    • Constructor Detail

      • AbstractCharMatrix

        public AbstractCharMatrix​(long... size)
    • Method Detail

      • getObject

        public final java.lang.Character getObject​(long... coordinates)
        Specified by:
        getObject in interface GenericMatrixMultiD<java.lang.Character>
      • getAsChar

        public final char getAsChar​(long... coordinates)
        Description copied from interface: GettersAndSetters
        Returns a char representation of an entry in the matrix. The stored value will be converted to a char as good as possible.
        Specified by:
        getAsChar in interface GettersAndSetters
        Overrides:
        getAsChar in class AbstractMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a char representation of the entry @
      • setAsChar

        public final void setAsChar​(char value,
                                    long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to a char value. If the matrix cannot store char values, the value will be represented as good as possible.
        Specified by:
        setAsChar in interface GettersAndSetters
        Overrides:
        setAsChar in class AbstractMatrix
        Parameters:
        value - char value
        coordinates - location of the entry @
      • getAsDouble

        public final double getAsDouble​(long... coordinates)
        Description copied from interface: GettersAndSetters
        Returns a double representation of an entry in the matrix. The stored value will be converted to a double as good as possible.
        Specified by:
        getAsDouble in interface GettersAndSetters
        Overrides:
        getAsDouble in class AbstractMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a double representation of the entry @
      • setAsDouble

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