public class SortedSets extends Object
Modifier and Type | Method and Description |
---|---|
static <T> int |
sizeEstimate(SortedSet<T> set) |
static <T extends Comparable<T>> |
union(SortedSet<T> a,
SortedSet<T> b)
A view merging the two underlying sorted sets.
|
public static <T extends Comparable<T>> SortedSet<T> union(SortedSet<T> a, SortedSet<T> b)
This View performs all operations lazily, and sacrifices CPU to reduce memory overhead. If
operations are being repeatedly performed, it may be better to perform eager copies using
something like ImmutableSortedSet.copyOf(E[])
.
The behavior of this view is unspecified if the underlying SortedSets are modified after construction.
public static <T> int sizeEstimate(SortedSet<T> set)