Range<T> Class

  • java.lang.Object
    • com.microsoft.azure.documentdb.Range<T>

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 other)

Parameters:

other

contains

public boolean contains(T value)

Parameters:

value

contains

public boolean contains(Range other)

Parameters:

other

intersect

public boolean intersect(Range other)

Parameters:

other

toString

public String toString()

Overrides:

Range<T>.toString()

Applies to