Class CollectionHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.CollectionHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
anyMatch
(Collection<T> list1, Collection<T> list2) static <T> boolean
static <T> boolean
containsAll
(List<T> baseList, List<T> mustHave) static <T> boolean
containsAll
(Set<T> baseList, Set<T> mustHave) static <T> T
static <T,
E extends T>
Estatic <T> T
getRandomElement
(List<T> list) static <T> T
getRandomElement
(Set<T> set) static <T,
E extends T>
voidstatic <K,
V> List<K> reverseMapGet
(Map<K, V> map, V value) static <T> boolean
static <T> T[]
stripNulls
(Class<T> clazz, T... array)
-
Constructor Details
-
CollectionHelper
public CollectionHelper()
-
-
Method Details
-
reverseMapGet
-
getRandomElement
-
getRandomElement
-
anyMatch
-
containsAll
-
containsAll
-
containsA
-
getFirst
-
removeAny
-
find
-
some
-
stripNulls
-