Class Range<T>
java.lang.Object
org.springframework.data.elasticsearch.core.Range<T>
Deprecated, for removal: This API element is subject to removal in a future version.
use {org.springframework.data.domain.Range} instead.
Simple value object to work with ranges and boundaries.
- Since:
- 4.3
- Author:
- Sascha Woo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated, for removal: This API element is subject to removal in a future version.Value object representing a boundary. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Range<T>closed(T from, T to) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newRangewith inclusive bounds for both values.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returns whether theRangecontains the given value.booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.static <T> Range<T>just(T value) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new Range with the given value as sole member.static <T> Range<T>leftOpen(T from, T to) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new left-openRange, i.e. left exclusive, right inclusive.static <T> Range<T>leftUnbounded(Range.Bound<T> to) Deprecated, for removal: This API element is subject to removal in a future version.Creates a left-unboundedRange(the left bound set toRange.Bound.unbounded()) with the given right bound.static <T> Range<T>of(Range.Bound<T> lowerBound, Range.Bound<T> upperBound) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newRangewith the given lower and upper bound.static <T> Range<T>open(T from, T to) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newRangewith exclusive bounds for both values.static <T> Range<T>rightOpen(T from, T to) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new right-openRange, i.e. left inclusive, right exclusive.static <T> Range<T>rightUnbounded(Range.Bound<T> from) Deprecated, for removal: This API element is subject to removal in a future version.Creates a right-unboundedRange(the right bound set toRange.Bound.unbounded()) with the given left bound.toString()Deprecated, for removal: This API element is subject to removal in a future version.static <T> Range<T>Deprecated, for removal: This API element is subject to removal in a future version.Returns an unboundedRange.
-
Method Details
-
closed
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newRangewith inclusive bounds for both values.- Type Parameters:
T-- Parameters:
from- must not be null.to- must not be null.- Returns:
-
just
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new Range with the given value as sole member.- Type Parameters:
T-- Parameters:
value- must not be null.- Returns:
- See Also:
-
leftOpen
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new left-openRange, i.e. left exclusive, right inclusive.- Type Parameters:
T-- Parameters:
from- must not be null.to- must not be null.- Returns:
-
leftUnbounded
Deprecated, for removal: This API element is subject to removal in a future version.Creates a left-unboundedRange(the left bound set toRange.Bound.unbounded()) with the given right bound.- Type Parameters:
T-- Parameters:
to- the rightRange.Bound, must not be null.- Returns:
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newRangewith the given lower and upper bound.- Parameters:
lowerBound- must not be null.upperBound- must not be null.
-
open
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newRangewith exclusive bounds for both values.- Type Parameters:
T-- Parameters:
from- must not be null.to- must not be null.- Returns:
-
rightOpen
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new right-openRange, i.e. left inclusive, right exclusive.- Type Parameters:
T-- Parameters:
from- must not be null.to- must not be null.- Returns:
-
rightUnbounded
Deprecated, for removal: This API element is subject to removal in a future version.Creates a right-unboundedRange(the right bound set toRange.Bound.unbounded()) with the given left bound.- Type Parameters:
T-- Parameters:
from- the leftRange.Bound, must not be null.- Returns:
-
unbounded
Deprecated, for removal: This API element is subject to removal in a future version.Returns an unboundedRange.- Returns:
-
contains
Deprecated, for removal: This API element is subject to removal in a future version.Returns whether theRangecontains the given value.- Parameters:
value- must not be null.- Returns:
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
getLowerBound
Deprecated, for removal: This API element is subject to removal in a future version. -
getUpperBound
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-