|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.filter.AbstractRange
com.ibm.tws.objects.filter.LongRange
This subclass of AbstractRange can hold a range of long values, and can be set into a QueryFilter to retrieve results with the requested range on a selected long field.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
LongRange(long limit,
boolean isStart)
Creates an "open" LongRange object, having only a start or end limit. |
|
LongRange(long start,
long end)
Creates a "closed" LongRange object, having both a start and end limit. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if this range is equal to the given one. |
long |
getRangeEnd()
Returns the range end limit. |
long |
getRangeStart()
Returns the range start limit. |
int |
hashCode()
Returns a hash code for this range. |
java.lang.String |
toString()
Returns a compact representation of this range. |
Methods inherited from class com.ibm.tws.objects.filter.AbstractRange |
---|
hasEnd, hasStart |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public LongRange(long start, long end)
start
- The range start limit.end
- The range end limit.
java.lang.IllegalArgumentException
- The start limit is greater than the end limit.public LongRange(long limit, boolean isStart)
limit
- The range start or end limit.isStart
- True if the range has only a start limit, false if it has only an end limit.Method Detail |
public long getRangeStart()
public long getRangeEnd()
public boolean equals(java.lang.Object object)
equals
in class AbstractRange
object
- The object to be compared with this one.
public int hashCode()
hashCode
in class AbstractRange
public java.lang.String toString()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |