Package net.minecraft
Class Optionull
java.lang.Object
net.minecraft.Optionull
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
first
(Collection<T> pCollection) static <T> T
firstOrDefault
(Collection<T> pCollection, T pDefaultValue) static <T> T
firstOrElse
(Collection<T> pCollection, Supplier<T> pSupplier) static boolean
isNullOrEmpty
(boolean[] pArray) static boolean
isNullOrEmpty
(byte[] pArray) static boolean
isNullOrEmpty
(char[] pArray) static boolean
isNullOrEmpty
(double[] pArray) static boolean
isNullOrEmpty
(float[] pArray) static boolean
isNullOrEmpty
(int[] pArray) static boolean
isNullOrEmpty
(long[] pArray) static boolean
isNullOrEmpty
(short[] pArray) static <T> boolean
isNullOrEmpty
(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)
-