Package jisa.results

Class ResultList

  • All Implemented Interfaces:
    java.lang.Iterable<Row>

    public class ResultList
    extends ResultTable
    • Constructor Detail

      • ResultList

        public ResultList​(Column... columns)
      • ResultList

        public ResultList​(java.lang.String... names)
      • ResultList

        public ResultList​(java.util.Collection<Column> columns)
      • ResultList

        protected ResultList​(java.util.List<Row> rows,
                             boolean dummy)
    • Method Detail

      • loadFile

        public static ResultList loadFile​(java.lang.String filePath)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getRow

        public Row getRow​(int index)
        Description copied from class: ResultTable
        Returns the row with the given index as a Row object.
        Specified by:
        getRow in class ResultTable
        Parameters:
        index - Row index
        Returns:
        Row object for given index
      • addRowData

        protected void addRowData​(Row row)
        Description copied from class: ResultTable
        Implementation method for storing a given Row of data.
        Specified by:
        addRowData in class ResultTable
        Parameters:
        row - Row to store
      • clearData

        protected void clearData()
        Description copied from class: ResultTable
        Implementation method for clearing all data from the table.
        Specified by:
        clearData in class ResultTable
      • getRowCount

        public int getRowCount()
        Description copied from class: ResultTable
        Returns the number of rows in the table.
        Specified by:
        getRowCount in class ResultTable
        Returns:
        Number of rows
      • stream

        public java.util.stream.Stream<Row> stream()
        Description copied from class: ResultTable
        Returns a sequential Stream of Row objects with this table as its source
        Specified by:
        stream in class ResultTable
        Returns:
        Stream of rows
      • iterator

        public java.util.Iterator<Row> iterator()
      • collect

        public static java.util.stream.Collector<Row,​?,​ResultList> collect​(Column... columns)
      • collect

        public static java.util.stream.Collector<Row,​?,​ResultList> collect()
      • mapCollector

        public static java.util.stream.Collector<java.util.Map,​?,​ResultList> mapCollector()