Class ListFactory
java.lang.Object
org.benf.cfr.reader.util.collections.ListFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <X> List<X>
combinedOptimistic
(List<X> a, List<X> b) Note that you can't expect to mutate the result.static <X> List<X>
newImmutableList
(X... original) static <X> LinkedList<X>
static <X> List<X>
newList()
static <X> List<X>
newList
(int size) static <X> List<X>
newList
(Collection<X> original) static <X> List<X>
newList
(X... original) static <X> List<X>
orEmptyList
(List<X> nullableList) static <X> List<X>
uniqueList
(Collection<X> list)
-
Constructor Details
-
ListFactory
public ListFactory()
-
-
Method Details
-
newList
-
newImmutableList
-
newList
-
newList
-
newList
-
newLinkedList
-
uniqueList
-
combinedOptimistic
Note that you can't expect to mutate the result. -
orEmptyList
-