Class RangeUtils
java.lang.Object
org.apache.jena.sparql.service.enhancer.impl.util.RangeUtils
Utility methods for working with guava
Range
instances-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Comparable<C>>
com.google.common.collect.RangeSet<C>gaps
(com.google.common.collect.Range<C> requestRange, com.google.common.collect.RangeSet<C> availableRanges) static <I extends Comparable<I>,
O extends Comparable<O>>
com.google.common.collect.Range<O>Perform a map operation on all present endpointsstatic com.google.common.collect.Range<Long>
Shift the endpoints of the range of type 'Long' by the given distancestatic com.google.common.collect.Range<Long>
static com.google.common.collect.Range<Long>
toRange
(org.apache.jena.query.Query query)
-
Constructor Details
-
RangeUtils
public RangeUtils()
-
-
Method Details
-
gaps
public static <C extends Comparable<C>> com.google.common.collect.RangeSet<C> gaps(com.google.common.collect.Range<C> requestRange, com.google.common.collect.RangeSet<C> availableRanges) -
toRange
-
toRange
-
shiftLong
public static com.google.common.collect.Range<Long> shiftLong(com.google.common.collect.Range<Long> rawRange, long distance) Shift the endpoints of the range of type 'Long' by the given distance -
map
public static <I extends Comparable<I>,O extends Comparable<O>> com.google.common.collect.Range<O> map(com.google.common.collect.Range<I> range, Function<? super I, ? extends O> mapper) Perform a map operation on all present endpoints
-