wt.eff
Class DateEffGroupRangeDelegate

java.lang.Object
  extended by wt.eff.DateEffGroupRangeDelegate
All Implemented Interfaces:
Externalizable, Serializable, EffGroupRangeDelegate

public class DateEffGroupRangeDelegate
extends Object
implements EffGroupRangeDelegate, Externalizable

Range delegate for dates. Note that this is the only delegate that will accept a null start value (it converts it to the current date at local midnight).

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 boolean isAdjacentTo(EffRange effRangeThis, EffRange effRangeTest)
          Compares two EffRanges to determine if the range represented by this is exactly one unit less than the other.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAdjacentTo

public boolean isAdjacentTo(EffRange effRangeThis,
                            EffRange effRangeTest)
Compares two EffRanges to determine if the range represented by this is exactly one unit less than the other. This comparison applies only to range types that are countable (such as dates); otherwise, this method must return false. Only the start values are used in the comparison. To compare end values, create ranges that use them as start values.

Supported API: true

Specified by:
isAdjacentTo in interface EffGroupRangeDelegate
Parameters:
effRangeThis -
effRangeTest -
Returns:
boolean