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