Class StringMatrix<R,​C>

    • Constructor Detail

      • StringMatrix

        public StringMatrix​(int x,
                            int y)
    • Method Detail

      • columns

        public int columns()
        Description copied from interface: Matrix2D
        Get the number of columns the matrix has.
        Specified by:
        columns in interface Matrix2D<R,​C,​String>
        Returns:
      • get

        public String get​(int row,
                          int column)
        Specified by:
        get in interface ObjectMatrix<R,​C,​String>
        Parameters:
        row -
        column -
        Returns:
      • get

        public String get​(R row,
                          C column)
      • getColObj

        public String[] getColObj​(int col)
      • getObject

        public String getObject​(int row,
                                int col)
      • isMissing

        public boolean isMissing​(int i,
                                 int j)
        Strings are considered missing if they are whitespace, null or empty.
        Specified by:
        isMissing in interface Matrix2D<R,​C,​String>
        Parameters:
        i - row
        j - column
        Returns:
        true if the value is missing, false otherwise.
      • rows

        public int rows()
        Description copied from interface: Matrix2D
        Get the number of rows the matrix has
        Specified by:
        rows in interface Matrix2D<R,​C,​String>
        Returns:
      • set

        public void set​(int row,
                        int column,
                        String value)
        Specified by:
        set in interface Matrix2D<R,​C,​String>
        Parameters:
        row -
        column -
        value -
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        java.lang.String
      • viewColumn

        public cern.colt.matrix.ObjectMatrix1D viewColumn​(int column)
        Parameters:
        column -
        Returns:
      • viewRow

        public cern.colt.matrix.ObjectMatrix1D viewRow​(int row)
        Parameters:
        row -
        Returns: