Range Class

Definition

Represents a left-inclusive, right-exclusive range of values.

public class Range
Inheritance
java.lang.Object
Range

Constructors

Range(Object low)

Constructs range based on its low boundary value. The low boundary value is set to the one specified in low while the high boundary value is set to maximum possible value i.e. +infinity.

Range(Object low, Object high)

Constructs range based on its low and high boundary values.

Methods

equals(Object obj)

Determines whether the specified object is equal to the current object.

equals(Range other)

Performs equality comparison with another Range.

getHigh()
getLow()
getShardRange()
hashCode()

Calculates the hash code for this instance.

isHighMax()
toString()

Converts the object to its string representation.

Applies to