public final class SelectableRangeSet
extends java.lang.Object
RANGE: AFTER_LAST_VALUE 10, BEFORE_FIRST_VALUE 15 RANGE: AFTER_LAST_VALUE 15, BEFORE_FIRST_VALUE 20 RANGE: FIRST_VALUE 50, LAST_VALUE LAST_IN_SET
The range is constructed by calls to 'intersect', and 'union'.
Constructor | Description |
---|---|
SelectableRangeSet() |
Constructs the SelectableRangeSet to a full range (a range that encompases
all values).
|
Modifier and Type | Method | Description |
---|---|---|
void |
intersect(Operator op,
TObject val) |
Intersects this range with the given Operator and value constraint.
|
static void |
main(java.lang.String[] args) |
A test application.
|
SelectableRange[] |
toSelectableRangeArray() |
Returns the range as an array of SelectableRange or an empty array if
there is no range.
|
java.lang.String |
toString() |
Outputs this range as a string, for diagnostic and testing purposes.
|
void |
union(Operator op,
TObject val) |
Unions this range with the given Operator and value constraint.
|
void |
union(SelectableRangeSet union_to) |
Unions the current range set with the given range set.
|
public SelectableRangeSet()
public void intersect(Operator op, TObject val)
public void union(Operator op, TObject val)
public void union(SelectableRangeSet union_to)
public SelectableRange[] toSelectableRangeArray()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
Copyright © 2018. All rights reserved.