Package uk.ac.starlink.topcat
Class InverseRowSubset
java.lang.Object
uk.ac.starlink.topcat.RowSubset
uk.ac.starlink.topcat.InverseRowSubset
RowSubset implementation which provides the complement of a base set.
- Since:
- 26 Mar 2004
- Author:
- Mark Taylor (Starlink)
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.starlink.topcat.RowSubset
RowSubset.Key
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the subset on which this one is based.boolean
isIncluded
(long lrow) Indicates whether a given row is in the subset or not.
-
Constructor Details
-
InverseRowSubset
Constructor.- Parameters:
base
- subset to be inverted
-
-
Method Details
-
isIncluded
public boolean isIncluded(long lrow) Description copied from class:RowSubset
Indicates whether a given row is in the subset or not.- Specified by:
isIncluded
in classRowSubset
- Parameters:
lrow
- the index of the row in question- Returns:
true
iff rowlrow
is to be included
-
getInvertedSubset
Returns the subset on which this one is based.- Returns:
- complement of this subset
-