你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Range<T> Class
- java.
lang. Object - com.
microsoft. azure. documentdb. Range<T>
- com.
Type Parameters
- T
Implements
java.lang.Comparable<Range<T>>
public class Range
implements java.lang.Comparable<Range<T>>
Represents a range in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description | |
---|---|---|
Range(T point) | ||
Range(T low, T high) |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | compareTo(Range<T> other) |
boolean | contains(T value) |
boolean | contains(Range<T> other) |
boolean | intersect(Range<T> other) |
java.lang.String | toString() |
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Constructor Details
Range
public Range(T point)
Parameters:
point
Range
public Range(T low, T high)
Parameters:
low
high
Method Details
compareTo
public int compareTo(Range
Parameters:
other
contains
public boolean contains(T value)
Parameters:
value
contains
public boolean contains(Range
Parameters:
other
intersect
public boolean intersect(Range
Parameters:
other
toString
public String toString()
Overrides:
Range<T>.toString()