|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jdroid.java.collections.Sets
public class Sets
| Constructor Summary | |
|---|---|
Sets()
|
|
| Method Summary | ||
|---|---|---|
static
|
newHashSet()
Creates a mutable, empty HashSet instance. |
|
static
|
newHashSet(E... elements)
Creates a mutable HashSet instance containing the given elements in unspecified order. |
|
static
|
newHashSet(Iterable<? extends E> elements)
Creates a mutable HashSet instance containing the given elements in unspecified order. |
|
static
|
newHashSet(Iterator<? extends E> elements)
Creates a mutable HashSet instance containing the given elements in unspecified order. |
|
static
|
newLinkedHashSet()
Creates a mutable, empty LinkedHashSet instance. |
|
static
|
newLinkedHashSet(Iterable<? extends E> elements)
Creates a mutable LinkedHashSet instance containing the given elements in order. |
|
static
|
newTreeSet()
Creates a mutable, empty TreeSet instance sorted by the natural sort ordering of its elements. |
|
static
|
newTreeSet(Iterable<? extends E> elements)
Creates a mutable TreeSet instance containing the given elements sorted by their natural ordering. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sets()
| Method Detail |
|---|
public static <E> HashSet<E> newHashSet()
HashSet instance.
HashSetpublic static <E> HashSet<E> newHashSet(E... elements)
HashSet instance containing the given elements in unspecified order.
elements - the elements that the set should contain
HashSet containing those elements (minus duplicates)public static <E> HashSet<E> newHashSet(Iterable<? extends E> elements)
HashSet instance containing the given elements in unspecified order.
elements - the elements that the set should contain
HashSet containing those elements (minus duplicates)public static <E> HashSet<E> newHashSet(Iterator<? extends E> elements)
HashSet instance containing the given elements in unspecified order.
elements - the elements that the set should contain
HashSet containing those elements (minus duplicates)public static <E> LinkedHashSet<E> newLinkedHashSet()
LinkedHashSet instance.
LinkedHashSetpublic static <E> LinkedHashSet<E> newLinkedHashSet(Iterable<? extends E> elements)
LinkedHashSet instance containing the given elements in order.
elements - the elements that the set should contain, in order
LinkedHashSet containing those elements (minus duplicates)public static <E extends Comparable<?>> TreeSet<E> newTreeSet()
TreeSet instance sorted by the natural sort ordering of its elements.
TreeSetpublic static <E extends Comparable<?>> TreeSet<E> newTreeSet(Iterable<? extends E> elements)
TreeSet instance containing the given elements sorted by their natural ordering.
elements - the elements that the set should contain
TreeSet containing those elements (minus duplicates)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||