public final class MiscUtil extends Object
| Constructor and Description |
|---|
MiscUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
newArrayList(T... o) |
static <T> T |
requireNonNullOfType(Object o,
Class<T> type) |
static <T> T |
trustedCast(Object o) |
static <T> T |
trustedNullableCast(@Nullable Object o) |
@SafeVarargs public static <T> List<T> newArrayList(T... o)
@NotNull public static <T> T trustedCast(Object o)
@Nullable
public static <T> T trustedNullableCast(@Nullable
@Nullable Object o)
Copyright © 2011–2024. All rights reserved.