public final class SelectableRange extends Object
For example, to select the first item from a set the range would be;
RANGE: start = FIRST_VALUE, first end = LAST_VALUE, firstTo select the last item from a set the range would be;
RANGE: start = FIRST_VALUE, last end = LAST_VALUE, lastTo select the range of values between '10' and '15' then range would be;
RANGE: start = FIRST_VALUE, '10' end = LAST_VALUE, '15'Note that the the start value may not compare less than the end value. For example, start can not be 'last' and end can not be 'first'.
Modifier and Type | Field and Description |
---|---|
static byte |
AFTER_LAST_VALUE
Represents the various points in the set on the value to represent the
set range.
|
static byte |
BEFORE_FIRST_VALUE
Represents the various points in the set on the value to represent the
set range.
|
static TObject |
FIRST_IN_SET
An object that represents the first value in the set.
|
static byte |
FIRST_VALUE
Represents the various points in the set on the value to represent the
set range.
|
static SelectableRange |
FULL_RANGE
The range that represents the entire range (including null).
|
static SelectableRange |
FULL_RANGE_NO_NULLS
The range that represents the entire range (not including null).
|
static TObject |
LAST_IN_SET
An object that represents the last value in the set.
|
static byte |
LAST_VALUE
Represents the various points in the set on the value to represent the
set range.
|
Constructor and Description |
---|
SelectableRange(byte set_start_flag,
TObject start,
byte set_end_flag,
TObject end)
Constructs the range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object ob)
Returns true if this range is equal to the given range.
|
TObject |
getEnd()
Returns the end of the range.
|
byte |
getEndFlag()
Returns the place for the range to end (either BEFORE_FIRST_VALUE or
LAST VALUE).
|
TObject |
getStart()
Returns the start of the range.
|
byte |
getStartFlag()
Returns the place for the range to start (either FIRST_VALUE or
AFTER_LAST_VALUE)
|
String |
toString()
Outputs this range as a string.
|
public static final TObject FIRST_IN_SET
Note that these objects have no (NULL) type.
public static final TObject LAST_IN_SET
Note that these objects have no (NULL) type.
public static final byte FIRST_VALUE
public static final byte LAST_VALUE
public static final byte BEFORE_FIRST_VALUE
public static final byte AFTER_LAST_VALUE
public static final SelectableRange FULL_RANGE
public static final SelectableRange FULL_RANGE_NO_NULLS
public TObject getStart()
public TObject getEnd()
public byte getStartFlag()
public byte getEndFlag()
public String toString()
Copyright © 2015. All rights reserved.