public class SortedSets
extends java.lang.Object
SortedSets is the preferred method of constructing instances of SortedSet.
TreeSet is currently constructed in
all cases, however this may change in the future.
SortedSets is preferred for construction as:
TreeSets)
| Modifier and Type | Method and Description |
|---|---|
static <E> Builder<E,SortedSet<E>> |
builder() |
static <E> Builder<E,SortedSet<E>> |
builder(java.util.Comparator<? super E> comparator) |
static <E> SortedSet<E> |
copyOf(java.util.Comparator<? super E> comparator,
E[] es) |
static <E> SortedSet<E> |
copyOf(java.util.Comparator<? super E> comparator,
java.lang.Iterable<E> iterable) |
static <E> SortedSet<E> |
copyOf(java.util.Comparator<? super E> comparator,
java.util.Iterator<E> iterator) |
static <E> SortedSet<E> |
copyOf(java.util.Comparator<? super E> comparator,
Traversable<E> traversable) |
static <E> SortedSet<E> |
copyOf(E[] es) |
static <E> SortedSet<E> |
copyOf(java.lang.Iterable<E> iterable) |
static <E> SortedSet<E> |
copyOf(java.util.Iterator<E> iterator) |
static <E> SortedSet<E> |
copyOfTraversable(java.util.Comparator<? super E> comparator,
Traversable<E> traversable) |
static <E> SortedSet<E> |
copyOfTraversable(Traversable<E> traversable) |
static <E> BuilderFactory<E,SortedSet<E>> |
factory() |
static <E> BuilderFactory<E,SortedSet<E>> |
factory(java.util.Comparator<? super E> comparator) |
static <E extends java.lang.Comparable<? super E>> |
of() |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4,
E e5) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4,
E e5,
E e6) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10) |
static <E extends java.lang.Comparable<? super E>> |
of(java.util.Comparator<? super E> comparator,
E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10,
E... others) |
static <E extends java.lang.Comparable<? super E>> |
of(E e) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4,
E e5) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10) |
static <E extends java.lang.Comparable<? super E>> |
of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10,
E... others) |
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of()
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10, E... others)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6, E e7)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)
@NotNull public static <E extends java.lang.Comparable<? super E>> SortedSet<E> of(java.util.Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10, E... others)
@NotNull public static <E> SortedSet<E> copyOf(java.lang.Iterable<E> iterable)
@NotNull public static <E> SortedSet<E> copyOf(java.util.Iterator<E> iterator)
@NotNull public static <E> SortedSet<E> copyOf(E[] es)
@NotNull public static <E> SortedSet<E> copyOf(java.util.Comparator<? super E> comparator, E[] es)
@NotNull public static <E> SortedSet<E> copyOf(java.util.Comparator<? super E> comparator, java.lang.Iterable<E> iterable)
@NotNull public static <E> SortedSet<E> copyOf(java.util.Comparator<? super E> comparator, java.util.Iterator<E> iterator)
@NotNull public static <E> SortedSet<E> copyOf(java.util.Comparator<? super E> comparator, Traversable<E> traversable)
@NotNull public static <E> SortedSet<E> copyOfTraversable(Traversable<E> traversable)
@NotNull public static <E> SortedSet<E> copyOfTraversable(java.util.Comparator<? super E> comparator, Traversable<E> traversable)
@NotNull public static <E> BuilderFactory<E,SortedSet<E>> factory()
@NotNull public static <E> BuilderFactory<E,SortedSet<E>> factory(java.util.Comparator<? super E> comparator)