public class RangeSets extends Object
Constructor and Description |
---|
RangeSets() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.RangeSet<Long> |
fromIntervals(Iterable<org.joda.time.Interval> intervals) |
static <T extends Comparable<T>> |
intersectRanges(Iterable<com.google.common.collect.Range<T>> ranges)
Intersects a set of ranges, or returns null if the set is empty.
|
static <T extends Comparable<T>> |
intersectRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets)
Intersects a set of rangeSets, or returns null if the set is empty.
|
static <T extends Comparable<T>> |
of(com.google.common.collect.Range<T> range) |
static List<org.joda.time.Interval> |
toIntervals(com.google.common.collect.RangeSet<Long> rangeSet) |
static <T extends Comparable<T>> |
unionRanges(Iterable<com.google.common.collect.Range<T>> ranges)
Unions a set of ranges, or returns null if the set is empty.
|
static <T extends Comparable<T>> |
unionRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets)
Unions a set of rangeSets, or returns null if the set is empty.
|
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> of(com.google.common.collect.Range<T> range)
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> unionRanges(Iterable<com.google.common.collect.Range<T>> ranges)
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> unionRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets)
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> intersectRanges(Iterable<com.google.common.collect.Range<T>> ranges)
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> intersectRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets)
public static com.google.common.collect.RangeSet<Long> fromIntervals(Iterable<org.joda.time.Interval> intervals)
Copyright © 2011–2017. All rights reserved.