public class TypeUtils extends Object
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
fitsIntoInt(long value) |
static int |
iv(String v,
int defaultValue) |
static Integer |
ivn(String v) |
static <T> Class<List<T>> |
listType() |
static long |
lv(String v,
long defaultValue) |
static Long |
lvn(String v) |
static <T,V> Class<Map<T,V>> |
mapType() |
static int |
nn(Integer value,
int defaultValue) |
static long |
nn(Long value,
long defaultValue) |
static String |
nn(String value) |
static int |
nni(Integer value) |
static long |
nnl(Long value) |
static <T> T |
nnv(T value,
T defaultValue) |
static <T> Class<Set<T>> |
setType() |
public static long nn(@Nullable Long value, long defaultValue)
public static int nn(@Nullable Integer value, int defaultValue)
@NotNull public static <T> T nnv(@Nullable T value, @NotNull T defaultValue)
public static long lv(String v, long defaultValue)
public static int iv(String v, int defaultValue)
public static long nnl(Long value)
public static int nni(Integer value)
public static boolean fitsIntoInt(long value)
Copyright © 2024 Tempo Software. All Rights Reserved.