Package net.minecraft
Class Optionull
java.lang.Object
net.minecraft.Optionull
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tfirst(Collection<T> collection) static <T> TfirstOrDefault(Collection<T> collection, T defaultValue) static <T> TfirstOrElse(Collection<T> collection, Supplier<T> supplier) static booleanisNullOrEmpty(boolean[] array) static booleanisNullOrEmpty(byte[] array) static booleanisNullOrEmpty(char[] array) static booleanisNullOrEmpty(double[] array) static booleanisNullOrEmpty(float[] array) static booleanisNullOrEmpty(int[] array) static booleanisNullOrEmpty(long[] array) static booleanisNullOrEmpty(short[] array) static <T> booleanisNullOrEmpty(T[] array) static <T,R> R static <T,R> R mapOrDefault(T value, Function<T, R> mapper, R defaultValue) static <T,R> R
-
Constructor Details
-
Optionull
public Optionull()
-
-
Method Details
-
map
-
mapOrDefault
-
mapOrElse
-
first
-
firstOrDefault
-
firstOrElse
-
isNullOrEmpty
public static <T> boolean isNullOrEmpty(@Nullable T[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable boolean[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable byte[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable char[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable short[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable int[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable long[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable float[] array) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable double[] array)
-