Class DefaultSparseStringMatrix

    • Constructor Detail

      • DefaultSparseStringMatrix

        public DefaultSparseStringMatrix​(Matrix m)
      • DefaultSparseStringMatrix

        public DefaultSparseStringMatrix​(Matrix m,
                                         int maximumNumberOfEntries)
      • DefaultSparseStringMatrix

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

      • getString

        public java.lang.String getString​(long... coordinates)
        Description copied from interface: StringMatrix
        Returns a String representation of an entry in the matrix. The stored value will be converted to a String as good as possible.
        Specified by:
        getString in interface StringMatrix
        Parameters:
        coordinates - location of the entry
        Returns:
        a String representation of the entry @
      • setString

        public void setString​(java.lang.String string,
                              long... coordinates)
        Description copied from interface: StringMatrix
        Sets an entry in the matrix to a String value. If the matrix cannot store Strings, the value will be represented as good as possible.
        Specified by:
        setString in interface StringMatrix
        coordinates - location of the entry @
      • getAsString

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

        public void setAsString​(java.lang.String string,
                                long... coordinates)
        Description copied from interface: GettersAndSetters
        Sets an entry in the matrix to a String value. If the matrix cannot store Strings, the value will be represented as good as possible.
        Specified by:
        setAsString in interface GettersAndSetters
        Overrides:
        setAsString in class AbstractMatrix
        coordinates - location of the entry @