程序包 net.minecraft
类 Optionull
java.lang.Object
net.minecraft.Optionull
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <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
-
构造器详细资料
-
Optionull
public Optionull()
-
-
方法详细资料
-
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)
-