Range Class
- java.
lang. Object - com.
microsoft. azure. elasticdb. shard. base. Range
- com.
public class Range
Represents a left-inclusive, right-exclusive range of values.
Constructor Summary
Constructor | Description |
---|---|
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified object is equal to the current object. |
boolean |
equals(Range other)
Performs equality comparison with another Range. |
Object | getHigh() |
Object | getLow() |
Shard |
getShardRange() |
int |
hashCode()
Calculates the hash code for this instance. |
boolean | isHighMax() |
String |
toString()
Converts the object to its string representation. |
Constructor Details
Range
public 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.
Parameters:
Range
public Range(Object low, Object high)
Constructs range based on its low and high boundary values.
Parameters:
Method Details
equals
public boolean equals(Object obj)
Determines whether the specified object is equal to the current object.
Parameters:
Returns:
equals
public boolean equals(Range other)
Performs equality comparison with another Range.
Parameters:
Returns:
getHigh
public Object getHigh()
getLow
public Object getLow()
getShardRange
public ShardRange getShardRange()
hashCode
public int hashCode()
Calculates the hash code for this instance.
Returns:
isHighMax
public boolean isHighMax()
toString
public String toString()
Converts the object to its string representation.
Returns:
Applies to
Azure SDK for Java