Package net.minecraft
Class Optionull
java.lang.Object
net.minecraft.Optionull
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tfirst(Collection<T> pCollection) static <T> TfirstOrDefault(Collection<T> pCollection, T pDefaultValue) static <T> TfirstOrElse(Collection<T> pCollection, Supplier<T> pSupplier) static booleanisNullOrEmpty(boolean[] pArray) static booleanisNullOrEmpty(byte[] pArray) static booleanisNullOrEmpty(char[] pArray) static booleanisNullOrEmpty(double[] pArray) static booleanisNullOrEmpty(float[] pArray) static booleanisNullOrEmpty(int[] pArray) static booleanisNullOrEmpty(long[] pArray) static booleanisNullOrEmpty(short[] pArray) static <T> booleanisNullOrEmpty(T[] pArray) static <T,R> R static <T,R> R mapOrDefault(T pValue, Function<T, R> pMapper, R pDefaultValue) 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[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable boolean[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable byte[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable char[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable short[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable int[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable long[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable float[] pArray) -
isNullOrEmpty
public static boolean isNullOrEmpty(@Nullable double[] pArray)
-