Java com.google.common.collect Range fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect Range fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect Range.

The text is from its open source code.

Implementation

com.google.common.collect.Range has the following implementations.
Click this link to see all its implementation.

Method

RangeatLeast(C endpoint)
Returns a range that contains all values greater than or equal to endpoint .
RangeatMost(C endpoint)
Returns a range that contains all values less than or equal to endpoint .
Rangecanonical(DiscreteDomain domain)
Returns the canonical form of this range in the given domain.
Rangeclosed(C lower, C upper)
Returns a range that contains all values greater than or equal to lower and less than or equal to upper .
RangeclosedOpen(C lower, C upper)
Returns a range that contains all values greater than or equal to lower and strictly less than upper .
booleancontains(C value)
Returns true if value is within the bounds of this range.
RangedownTo(C endpoint, BoundType boundType)
Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive (open), with no upper bound.
RangeencloseAll(Iterable values)
Returns the minimal range that Range#contains(Comparable) contains all of the given values.
booleanencloses(Range other)
Returns true if the bounds of other do not extend outside the bounds of this range.
booleanequals(@Nullable Object object)
Returns true if object is a range having the same endpoints and bound types as this range.
RangegreaterThan(C endpoint)
Returns a range that contains all values strictly greater than endpoint .
booleanhasLowerBound()
Returns true if this range has a lower endpoint.
booleanhasUpperBound()
Returns true if this range has an upper endpoint.
Rangeintersection(Range connectedRange)
Returns the maximal range #encloses enclosed by both this range and connectedRange , if such a range exists.
booleanisConnected(Range other)
Returns true if there exists a (possibly empty) range which is #encloses enclosed by both this range and other .
booleanisEmpty()
Returns true if this range is of the form [v..v) or (v..v] .
RangelessThan(C endpoint)
Returns a range that contains all values strictly less than endpoint .
BoundTypelowerBoundType()
Returns the type of this range's lower bound: BoundType#CLOSED if the range includes its lower endpoint, BoundType#OPEN if it does not.
ClowerEndpoint()
Returns the lower endpoint of this range.
Rangeopen(C lower, C upper)
Returns a range that contains all values strictly greater than lower and strictly less than upper .
RangeopenClosed(C lower, C upper)
Returns a range that contains all values strictly greater than lower and less than or equal to upper .
Rangesingleton(C value)
Returns a range that Range#contains(Comparable) contains only the given value.
Rangespan(Range other)
Returns the minimal range that #encloses encloses both this range and other .
StringtoString()
Returns a string representation of this range, such as "[3..5)" (other examples are listed in the class documentation).
BoundTypeupperBoundType()
Returns the type of this range's upper bound: BoundType#CLOSED if the range includes its upper endpoint, BoundType#OPEN if it does not.
CupperEndpoint()
Returns the upper endpoint of this range.
RangeupTo(C endpoint, BoundType boundType)
Returns a range with no lower bound up to the given endpoint, which may be either inclusive (closed) or exclusive (open).