Class DefaultSparseStringMatrix

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, BaseGenericMatrix<String>, DenseGenericMatrix<String>, DenseGenericMatrix2D<String>, DenseGenericMatrixMultiD<String>, GenericMatrix<String>, GenericMatrix2D<String>, GenericMatrixMultiD<String>, SparseGenericMatrix<String>, SparseGenericMatrix2D<String>, SparseGenericMatrixMultiD<String>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations, StringMatrix

public class DefaultSparseStringMatrix extends DefaultSparseGenericMatrix<String> implements StringMatrix
See Also:
  • Field Details

  • Constructor Details

    • DefaultSparseStringMatrix

      public DefaultSparseStringMatrix(Matrix m)
    • DefaultSparseStringMatrix

      public DefaultSparseStringMatrix(Matrix m, int maximumNumberOfEntries)
    • DefaultSparseStringMatrix

      public DefaultSparseStringMatrix(long... size)
  • Method Details

    • getValueType

      public final ValueType getValueType()
      Specified by:
      getValueType in interface BaseMatrixProperties
      Overrides:
      getValueType in class DefaultSparseGenericMatrix<String>
    • getString

      public 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(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 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(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 @