com.sun.n1.sps.model
Interface VersionRange


public interface VersionRange

A version range object is used to match versions that fall within a specified range. This object is typically used as a filter option argument type when searching for entities.


Method Summary
 VersionNumber getRangeEnd()
          Returns the version number at the end of the range.
 VersionNumber getRangeStart()
          Returns the version number at the start of the range.
 boolean isRangeEndExact()
          Returns true if this object will match versions that are equal to the version at the end of the range, false if versions must be strictly less than the version at the end of the range.
 boolean isRangeStartExact()
          Returns true if this object will match versions that are equal to the version at the start of the range, false if versions must be strictly greater than the version at the start of the range.
 

Method Detail

getRangeStart

VersionNumber getRangeStart()
Returns the version number at the start of the range. Versions that are less than this version will not be matched by this object. If null, then any version less than the version at the end of the range will match.

Returns:
the version at the start of the range, or null if no start limit is enforced.

isRangeStartExact

boolean isRangeStartExact()
Returns true if this object will match versions that are equal to the version at the start of the range, false if versions must be strictly greater than the version at the start of the range. This value is ignored if the version at the start of the range is null.

Returns:
true if versions can exactly match the version and the start of the range.

getRangeEnd

VersionNumber getRangeEnd()
Returns the version number at the end of the range. Versions that are greater than this version will not be matched by this object. If null, then any version greater than the version at the start of the range will match.

Returns:
the version at the end of the range, or null if no end limit is enforced.

isRangeEndExact

boolean isRangeEndExact()
Returns true if this object will match versions that are equal to the version at the end of the range, false if versions must be strictly less than the version at the end of the range. This value is ignored if the version at the end of the range is null.

Returns:
true if versions can exactly match the version and the end of the range.