public final class SortedRangeSet extends Object implements Iterable<Range>
| Modifier and Type | Class and Description |
|---|---|
static class |
SortedRangeSet.Builder |
public static SortedRangeSet none(Class<?> type)
public static SortedRangeSet all(Class<?> type)
public static SortedRangeSet singleValue(Comparable<?> value)
public static SortedRangeSet of(Range first, Range... ranges)
public static SortedRangeSet copyOf(Class<?> type, Iterable<Range> ranges)
public static SortedRangeSet copyOf(Class<?> type, List<Range> ranges)
public Class<?> getType()
public int getRangeCount()
public boolean isNone()
public boolean isAll()
public boolean isSingleValue()
public Comparable<?> getSingleValue()
public boolean includesMarker(Marker marker)
public Range getSpan()
public boolean overlaps(SortedRangeSet other)
public boolean contains(SortedRangeSet other)
public SortedRangeSet intersect(SortedRangeSet other)
public SortedRangeSet union(SortedRangeSet other)
public static SortedRangeSet union(Iterable<SortedRangeSet> ranges)
public SortedRangeSet complement()
public SortedRangeSet subtract(SortedRangeSet other)
public static SortedRangeSet.Builder builder(Class<?> type)
Copyright © 2012-2014. All Rights Reserved.