public class BoxedCastUtil extends Object
| Constructor and Description |
|---|
BoxedCastUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean[] |
bools(Collection<Boolean> cols) |
static byte[] |
bytes(Collection<? extends Number> cols) |
static char[] |
chars(Collection<Character> cols) |
static double[] |
doubles(Collection<? extends Number> cols) |
static float[] |
floats(Collection<? extends Number> cols) |
static int[] |
ints(Collection<? extends Number> cols) |
static @NotNull List<Boolean> |
list(boolean[] arr) |
static @NotNull List<Byte> |
list(byte[] arr) |
static @NotNull List<Character> |
list(char[] arr) |
static @NotNull List<Double> |
list(double[] arr) |
static @NotNull List<Float> |
list(float[] arr) |
static @NotNull List<Integer> |
list(int[] arr) |
static @NotNull List<Long> |
list(long[] arr) |
static @NotNull List<Object> |
list(Object obj) |
static @NotNull List<Short> |
list(short[] arr) |
static long[] |
longs(Collection<? extends Number> cols) |
static byte |
orElse(@Nullable Byte n,
byte o) |
static char |
orElse(@Nullable Character n,
char o) |
static double |
orElse(@Nullable Double n,
double o) |
static float |
orElse(@Nullable Float n,
float o) |
static int |
orElse(@Nullable Integer n,
int o) |
static long |
orElse(@Nullable Long n,
long o) |
static short |
orElse(@Nullable Short n,
short o) |
static <T> T |
orElse(T n,
T o) |
static boolean |
orFalse(@Nullable Boolean b) |
static boolean |
orTrue(@Nullable Boolean b) |
static BigDecimal |
orZero(@Nullable BigDecimal n) |
static byte |
orZero(@Nullable Byte n) |
static char |
orZero(@Nullable Character n) |
static double |
orZero(@Nullable Double n) |
static float |
orZero(@Nullable Float n) |
static int |
orZero(@Nullable Integer n) |
static long |
orZero(@Nullable Long n) |
static short |
orZero(@Nullable Short n) |
static short[] |
shorts(Collection<? extends Number> cols) |
public static boolean orTrue(@Nullable
@Nullable Boolean b)
public static boolean orFalse(@Nullable
@Nullable Boolean b)
public static char orZero(@Nullable
@Nullable Character n)
public static char orElse(@Nullable
@Nullable Character n,
char o)
public static byte orZero(@Nullable
@Nullable Byte n)
public static byte orElse(@Nullable
@Nullable Byte n,
byte o)
public static short orZero(@Nullable
@Nullable Short n)
public static short orElse(@Nullable
@Nullable Short n,
short o)
public static int orZero(@Nullable
@Nullable Integer n)
public static int orElse(@Nullable
@Nullable Integer n,
int o)
public static long orZero(@Nullable
@Nullable Long n)
public static long orElse(@Nullable
@Nullable Long n,
long o)
public static double orZero(@Nullable
@Nullable Double n)
public static double orElse(@Nullable
@Nullable Double n,
double o)
public static float orZero(@Nullable
@Nullable Float n)
public static float orElse(@Nullable
@Nullable Float n,
float o)
public static BigDecimal orZero(@Nullable @Nullable BigDecimal n)
@NotNull
public static <T> T orElse(@Nullable
T n,
@NotNull
T o)
public static boolean[] bools(Collection<Boolean> cols)
public static char[] chars(Collection<Character> cols)
public static byte[] bytes(Collection<? extends Number> cols)
public static short[] shorts(Collection<? extends Number> cols)
public static int[] ints(Collection<? extends Number> cols)
public static long[] longs(Collection<? extends Number> cols)
public static float[] floats(Collection<? extends Number> cols)
public static double[] doubles(Collection<? extends Number> cols)
Copyright © 2023. All rights reserved.