Package com.hypixel.hytale.common.util
Class ListUtil
java.lang.Object
com.hypixel.hytale.common.util.ListUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,V> int binarySearch(List<? extends T> l, Function<T, V> func, V key, Comparator<? super V> c) static <T> booleanemptyOrAllNull(List<T> list) static <T,U> void removeIf(List<T> list, BiPredicate<T, U> predicate, U obj) static <T> void
-
Constructor Details
-
ListUtil
public ListUtil()
-
-
Method Details
-
partition
-
removeIf
-
removeIf
public static <T,U> void removeIf(@Nonnull List<T> list, @Nonnull BiPredicate<T, U> predicate, U obj) -
emptyOrAllNull
-
binarySearch
public static <T,V> int binarySearch(@Nonnull List<? extends T> l, @Nonnull Function<T, V> func, V key, @Nonnull Comparator<? super V> c)
-