Class SingleRowSubset
java.lang.Object
uk.ac.starlink.topcat.RowSubset
uk.ac.starlink.topcat.SingleRowSubset
RowSubset implementation that includes a maximum of one row index.
The
getMaskId() return value depends on the state, not the identity.- Since:
- 26 Aug 2022
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class RowSubset
RowSubset.Key -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a value dependent on the selected row.longReturns the included row index.booleanisIncluded(long lrow) Indicates whether a given row is in the subset or not.voidsetRowIndex(long lrow) Sets the included row index.
-
Constructor Details
-
SingleRowSubset
-
-
Method Details
-
setRowIndex
public void setRowIndex(long lrow) Sets the included row index.- Parameters:
lrow- index of single included row, or -1 for no rows
-
getRowIndex
public long getRowIndex()Returns the included row index.- Returns:
- index of single included row, or -1 for no rows
-
isIncluded
public boolean isIncluded(long lrow) Description copied from class:RowSubsetIndicates whether a given row is in the subset or not.- Specified by:
isIncludedin classRowSubset- Parameters:
lrow- the index of the row in question- Returns:
trueiff rowlrowis to be included
-
getMaskId
-