com.github.andrewoma.dexx.collection
Class SortedSets

java.lang.Object
  extended by com.github.andrewoma.dexx.collection.SortedSets

public class SortedSets
extends 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:


Method Summary
static
<E> Builder<E,SortedSet<E>>
builder()
           
static
<E> Builder<E,SortedSet<E>>
builder(Comparator<? super E> comparator)
           
static
<E> SortedSet<E>
copyOf(Comparator<? super E> comparator, E[] es)
           
static
<E> SortedSet<E>
copyOf(Comparator<? super E> comparator, Iterable<E> iterable)
           
static
<E> SortedSet<E>
copyOf(Comparator<? super E> comparator, Iterator<E> iterator)
           
static
<E> SortedSet<E>
copyOf(Comparator<? super E> comparator, Traversable<E> traversable)
           
static
<E> SortedSet<E>
copyOf(E[] es)
           
static
<E> SortedSet<E>
copyOf(Iterable<E> iterable)
           
static
<E> SortedSet<E>
copyOf(Iterator<E> iterator)
           
static
<E> SortedSet<E>
copyOfTraversable(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(Comparator<? super E> comparator)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of()
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e1, E e2)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e1, E e2, E e3)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e1, E e2, E e3, E e4)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6, E e7)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(Comparator<? super E> comparator, E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(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 Comparable<? super E>>
SortedSet<E>
of(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 Comparable<? super E>>
SortedSet<E>
of(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 Comparable<? super E>>
SortedSet<E>
of(E e)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2, E e3)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2, E e3, E e4)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2, E e3, E e4, E e5)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2, E e3, E e4, E e5, E e6)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2, E e3, E e4, E e5, E e6, E e7)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
           
static
<E extends Comparable<? super E>>
SortedSet<E>
of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)
           
static
<E extends 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)
           
static
<E extends 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of()

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2,
                                                                        E e3)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6,
                                                                        E e7)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6,
                                                                        E e7,
                                                                        E e8)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6,
                                                                        E e7,
                                                                        E e8,
                                                                        E e9)

of

@NotNull
public static <E extends 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)

of

@NotNull
public static <E extends 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)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6,
                                                                        E e7)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6,
                                                                        E e7,
                                                                        E e8)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6,
                                                                        E e7,
                                                                        E e8,
                                                                        E e9)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(Comparator<? super E> comparator,
                                                                        E e1,
                                                                        E e2,
                                                                        E e3,
                                                                        E e4,
                                                                        E e5,
                                                                        E e6,
                                                                        E e7,
                                                                        E e8,
                                                                        E e9,
                                                                        E e10)

of

@NotNull
public static <E extends Comparable<? super E>> SortedSet<E> of(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)

copyOf

@NotNull
public static <E> SortedSet<E> copyOf(Iterable<E> iterable)

copyOf

@NotNull
public static <E> SortedSet<E> copyOf(Iterator<E> iterator)

copyOf

@NotNull
public static <E> SortedSet<E> copyOf(E[] es)

copyOf

@NotNull
public static <E> SortedSet<E> copyOf(Comparator<? super E> comparator,
                                              E[] es)

copyOf

@NotNull
public static <E> SortedSet<E> copyOf(Comparator<? super E> comparator,
                                              Iterable<E> iterable)

copyOf

@NotNull
public static <E> SortedSet<E> copyOf(Comparator<? super E> comparator,
                                              Iterator<E> iterator)

copyOf

@NotNull
public static <E> SortedSet<E> copyOf(Comparator<? super E> comparator,
                                              Traversable<E> traversable)

copyOfTraversable

@NotNull
public static <E> SortedSet<E> copyOfTraversable(Traversable<E> traversable)

copyOfTraversable

@NotNull
public static <E> SortedSet<E> copyOfTraversable(Comparator<? super E> comparator,
                                                         Traversable<E> traversable)

factory

@NotNull
public static <E> BuilderFactory<E,SortedSet<E>> factory()

factory

@NotNull
public static <E> BuilderFactory<E,SortedSet<E>> factory(Comparator<? super E> comparator)

builder

@NotNull
public static <E> Builder<E,SortedSet<E>> builder()

builder

@NotNull
public static <E> Builder<E,SortedSet<E>> builder(Comparator<? super E> comparator)


Copyright © 2014. All Rights Reserved.