Package net.mcreator.util
Class ListUtils
java.lang.Object
net.mcreator.util.ListUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getRandomItem
(List<T> list) static <T> T
getRandomItem
(Random random, List<T> list) static <T> T
getRandomItem
(Random random, T[] list) static <T> T
getRandomItem
(T[] list) static <T> List
<T> intersect
(Collection<T> a, Collection<T> b) static <T> List
<T> merge
(Collection<T> a, Collection<T> b) static <T> Set
<T> mergeNoDuplicates
(Collection<T> a, Collection<T> b) static <T> void
-
Constructor Details
-
ListUtils
public ListUtils()
-
-
Method Details
-
merge
-
mergeNoDuplicates
-
intersect
-
rearrange
-
getRandomItem
public static <T> T getRandomItem(T[] list) -
getRandomItem
-
getRandomItem
-
getRandomItem
-