T
- this is used to specify which type of Data is stored in the object.public class Data<T> extends Object implements Serializable
This class represents a set of columns, which values are Ts.
Constructor and Description |
---|
Data(ArrayList<ArrayList<T>> clmns)
this constructor initialises the columns
|
Modifier and Type | Method and Description |
---|---|
Data<T> |
extractData(int[] columnIndexes)
Extracts several columns from this Data object and produces a Data object from them.
|
ArrayList<T> |
getColumn(int columnIndex)
Gets a column.
|
int |
getColumnNumber()
Gets the number of columns.
|
ArrayList<T> |
getLine(int lineIndex)
Gets a line.
|
int |
getLineNumber()
gets the number of lines in the data table
|
public Data(ArrayList<ArrayList<T>> clmns)
clmns
- the columns to put in the attributeEphemerisComparatorRuntimeException
- when columns is nullpublic final ArrayList<T> getColumn(int columnIndex)
columnIndex
- the index of the column to returnpublic final int getColumnNumber()
public final ArrayList<T> getLine(int lineIndex)
lineIndex
- the index of the line to returnpublic final int getLineNumber()
public final Data<T> extractData(int[] columnIndexes)
columnIndexes
- the table that contains all the indexes of the columns to extract.Copyright © 2019 CNES. All Rights Reserved.