Package com.atlassian.jira.util.collect
Class CollectionBuilder<T>
java.lang.Object
com.atlassian.jira.util.collect.CollectionBuilder<T>
- Type Parameters:
T- contained in the created collections.
Deprecated.
since 10.0, use Java built-in utilities or specialised libraries
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
Modifier and TypeMethodDescriptionDeprecated.<E extends T>
CollectionBuilder<T>addAll(E... elements) Deprecated.addAll(Collection<? extends T> elements) Deprecated.addAll(Enumeration<? extends T> elements) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.asList()Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.asSet()Deprecated.Deprecated.Return aSortedSetof the elements of this builder in their natural order.asSortedSet(Comparator<? super T> comparator) Deprecated.Deprecated.static <T> List<T>list(T... elements) Deprecated.static <T> CollectionBuilder<T>Deprecated.static <T> CollectionBuilder<T>newBuilder(T... elements) Deprecated.
-
Method Details
-
newBuilder
Deprecated. -
newBuilder
Deprecated. -
list
Deprecated. -
add
Deprecated. -
addAll
Deprecated. -
addAll
Deprecated. -
addAll
Deprecated. -
asCollection
Deprecated. -
asMutableCollection
Deprecated. -
asArrayList
Deprecated. -
asLinkedList
Deprecated. -
asList
Deprecated. -
asMutableList
Deprecated. -
asHashSet
Deprecated. -
asListOrderedSet
Deprecated. -
asImmutableListOrderedSet
Deprecated. -
asSet
Deprecated. -
asMutableSet
Deprecated. -
asTreeSet
Deprecated. -
asSortedSet
Deprecated.Return aSortedSetof the elements of this builder in their natural order. Note, will throw an exception if the elements are not comparable.- Returns:
- an immutable sorted set.
- Throws:
ClassCastException- if the elements do not implementComparable.
-
asSortedSet
Deprecated. -
asMutableSortedSet
Deprecated. -
asEnclosedIterable
Deprecated.
-