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