|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.util.collect.CollectionBuilder<T>
T - contained in the created collections.ImmutableList.builder()
@NotThreadSafe @Deprecated public final class CollectionBuilder<T>
Convenience class for creating collections (Set and List) instances or
enclosed iterables.
The default methods asList() and asSet() and asSortedSet() create immutable collections.
| Method Summary | ||
|---|---|---|
CollectionBuilder<T> |
add(T element)
Deprecated. |
|
CollectionBuilder<T> |
addAll(Collection<? extends T> elements)
Deprecated. |
|
|
addAll(E... elements)
Deprecated. |
|
CollectionBuilder<T> |
addAll(Enumeration<? extends T> elements)
Deprecated. |
|
List<T> |
asArrayList()
Deprecated. |
|
Collection<T> |
asCollection()
Deprecated. |
|
EnclosedIterable<T> |
asEnclosedIterable()
Deprecated. |
|
Set<T> |
asHashSet()
Deprecated. |
|
Set<T> |
asImmutableListOrderedSet()
Deprecated. |
|
List<T> |
asLinkedList()
Deprecated. |
|
List<T> |
asList()
Deprecated. |
|
Set<T> |
asListOrderedSet()
Deprecated. |
|
Collection<T> |
asMutableCollection()
Deprecated. |
|
List<T> |
asMutableList()
Deprecated. |
|
Set<T> |
asMutableSet()
Deprecated. |
|
SortedSet<T> |
asMutableSortedSet()
Deprecated. |
|
Set<T> |
asSet()
Deprecated. |
|
SortedSet<T> |
asSortedSet()
Deprecated. Return a SortedSet of the elements of this builder in their natural order. |
|
SortedSet<T> |
asSortedSet(Comparator<? super T> comparator)
Deprecated. |
|
SortedSet<T> |
asTreeSet()
Deprecated. |
|
static
|
list(T... elements)
Deprecated. |
|
static
|
newBuilder()
Deprecated. |
|
static
|
newBuilder(T... elements)
Deprecated. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> CollectionBuilder<T> newBuilder()
public static <T> CollectionBuilder<T> newBuilder(T... elements)
public static <T> List<T> list(T... elements)
public CollectionBuilder<T> add(T element)
public <E extends T> CollectionBuilder<T> addAll(E... elements)
public CollectionBuilder<T> addAll(Collection<? extends T> elements)
public CollectionBuilder<T> addAll(Enumeration<? extends T> elements)
public Collection<T> asCollection()
public Collection<T> asMutableCollection()
public List<T> asArrayList()
public List<T> asLinkedList()
public List<T> asList()
public List<T> asMutableList()
public Set<T> asHashSet()
public Set<T> asListOrderedSet()
public Set<T> asImmutableListOrderedSet()
public Set<T> asSet()
public Set<T> asMutableSet()
public SortedSet<T> asTreeSet()
public SortedSet<T> asSortedSet()
SortedSet of the elements of this builder in their natural order.
Note, will throw an exception if the elements are not comparable.
ClassCastException - if the elements do not implement Comparable.public SortedSet<T> asSortedSet(Comparator<? super T> comparator)
public SortedSet<T> asMutableSortedSet()
public EnclosedIterable<T> asEnclosedIterable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||