Package | Description |
---|---|
de.xima.fc.utils.range |
Modifier and Type | Class and Description |
---|---|
class |
Endpoint<C extends Comparable>
POJO class describing an end point of a range, either a lower or upper end point.
|
class |
EndpointAccessorsIdentity
An enumeration containing instances of
EndpointAccessor , for Range.lowerEndpoint() s or
Range.upperEndpoint() . |
class |
EndpointAccessorsRange
An enumeration with implementations of
EndpointAccessor s for accessing the end points of Range
objects. |
Modifier and Type | Method and Description |
---|---|
static <C extends Comparable> |
EndpointAccessorsRange.lowerEndpoint() |
static <C extends Comparable> |
EndpointAccessorsIdentity.lowerEndpointClosed() |
static <C extends Comparable> |
EndpointAccessorsRange.lowerEndpointClosed() |
static <C extends Comparable> |
EndpointAccessorsRange.lowerEndpointInverted() |
static <C extends Comparable> |
EndpointAccessorsIdentity.lowerEndpointOpen() |
static <C extends Comparable> |
EndpointAccessorsRange.lowerEndpointOpen() |
default <R extends Comparable> |
EndpointAccessor.mapping(Function<C,R> mapper) |
static <T,C extends Comparable> |
EndpointAccessorsIdentity.negativeInfinity() |
static <T,C extends Comparable> |
EndpointAccessorsIdentity.positiveInfinity() |
default <C extends Comparable> |
EndpointDescriptor.toAcessor()
Converts this descriptor into an end point accessor for a given point object.
|
static <C extends Comparable> |
EndpointAccessorsRange.upperEndpoint() |
static <C extends Comparable> |
EndpointAccessorsIdentity.upperEndpointClosed() |
static <C extends Comparable> |
EndpointAccessorsRange.upperEndpointClosed() |
static <C extends Comparable> |
EndpointAccessorsRange.upperEndpointInverted() |
static <C extends Comparable> |
EndpointAccessorsIdentity.upperEndpointOpen() |
static <C extends Comparable> |
EndpointAccessorsRange.upperEndpointOpen() |
Modifier and Type | Method and Description |
---|---|
static <T,C extends Comparable> |
RangeUtils.compareByEndpoint(T lhs,
EndpointAccessor<T,C> lhsEndpoint,
T rhs,
EndpointAccessor<T,C> rhsEndpoint)
Compares to endpoints of a range.
|
static <T,C extends Comparable> |
RangeUtils.compareByEndpoint(T lhs,
EndpointAccessor<T,C> lhsEndpoint,
T rhs,
EndpointAccessor<T,C> rhsEndpoint)
Compares to endpoints of a range.
|
static <T,C extends Comparable> |
RangeUtils.compareByEndpoint(T lhs,
EndpointAccessor<T,C> lhsEndpoint,
T rhs,
EndpointAccessor<T,C> rhsEndpoint,
EndpointTypeComparator comparator)
Compares to endpoints of a range.
|
static <T,C extends Comparable> |
RangeUtils.compareByEndpoint(T lhs,
EndpointAccessor<T,C> lhsEndpoint,
T rhs,
EndpointAccessor<T,C> rhsEndpoint,
EndpointTypeComparator comparator)
Compares to endpoints of a range.
|
static <T,C extends Comparable> |
RangeUtils.createRange(T lhs,
EndpointAccessor<T,C> lhsEndpoint,
T rhs,
EndpointAccessor<T,C> rhsEndpoint)
Creates a range from two end points.
|
static <T,C extends Comparable> |
RangeUtils.createRange(T lhs,
EndpointAccessor<T,C> lhsEndpoint,
T rhs,
EndpointAccessor<T,C> rhsEndpoint)
Creates a range from two end points.
|
static <C extends Comparable,T extends Comparable> |
RangeUtils.mapRange(com.google.common.collect.Range<C> range,
Function<C,T> mapper,
EndpointAccessor<com.google.common.collect.Range<C>,C> lowerAccessor,
EndpointAccessor<com.google.common.collect.Range<C>,C> upperAccessor)
Returns a new range with the points mapped by the given mapping function.
|
static <C extends Comparable,T extends Comparable> |
RangeUtils.mapRange(com.google.common.collect.Range<C> range,
Function<C,T> mapper,
EndpointAccessor<com.google.common.collect.Range<C>,C> lowerAccessor,
EndpointAccessor<com.google.common.collect.Range<C>,C> upperAccessor)
Returns a new range with the points mapped by the given mapping function.
|
static <C extends Comparable,T extends Comparable> |
RangeUtils.mapRange(com.google.common.collect.Range<C> range,
Function<C,T> lowerMapper,
EndpointAccessor<com.google.common.collect.Range<C>,C> lowerAccessor,
Function<C,T> upperMapper,
EndpointAccessor<com.google.common.collect.Range<C>,C> upperAccessor)
Returns a new range with the points mapped by the given mapping function.
|
static <C extends Comparable,T extends Comparable> |
RangeUtils.mapRange(com.google.common.collect.Range<C> range,
Function<C,T> lowerMapper,
EndpointAccessor<com.google.common.collect.Range<C>,C> lowerAccessor,
Function<C,T> upperMapper,
EndpointAccessor<com.google.common.collect.Range<C>,C> upperAccessor)
Returns a new range with the points mapped by the given mapping function.
|
static <T,C extends Comparable> |
Endpoint.of(T item,
EndpointAccessor<T,C> accessor) |
Constructor and Description |
---|
Endpoint(T item,
EndpointAccessor<T,C> endpoint) |
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.