com.ibm.tws.objects.filter
Class AbstractRange

java.lang.Object
  extended bycom.ibm.tws.objects.filter.AbstractRange
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IntegerRange, LongRange, TimeRange

public abstract class AbstractRange
extends java.lang.Object
implements java.io.Serializable

This is a base abstraction for range classes, whose purpose is to define the range of values for results retrieved by calls to the TWS API. Whenever an API call is requested to retrieve multiple results with a specific range on a selected field, the appropriate subclass of AbstractRange can be used to define the requested range, and put into a QueryFilter to define a specific range filter. Different subclasses of AbstractRange can hold ranges of different types.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
AbstractRange()
          Creates a "closed" AbstractRange object, having both a start and end limit.
AbstractRange(boolean isStart)
          Creates an "open" AbstractRange object, having only a start or end limit.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if this range is equal to the given one.
 boolean hasEnd()
          Returns true if this range has an end limit.
 int hashCode()
          Returns a hash code for this AbstractRange object.
 boolean hasStart()
          Returns true if this range has a start limit.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

AbstractRange

public AbstractRange()
Creates a "closed" AbstractRange object, having both a start and end limit.


AbstractRange

public AbstractRange(boolean isStart)
Creates an "open" AbstractRange object, having only a start or end limit.

Parameters:
isStart - True if the range has only a start limit, false if it has only an end limit.
Method Detail

hasStart

public boolean hasStart()
Returns true if this range has a start limit.

Returns:
True if this range has a start limit.

hasEnd

public boolean hasEnd()
Returns true if this range has an end limit.

Returns:
True if this range has an end limit.

equals

public boolean equals(java.lang.Object object)
Returns true if this range is equal to the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this AbstractRange object.

Returns:
The object's hash code.


Copyright © 2005 IBM All Rights Reserved.