public class TypeUtils
extends Object
-
Constructor Summary
Constructors
-
Method Summary
static boolean
static int
static long
static int
static long
nn(Long value,
long defaultValue)
static int
static long
static <T> T
nnv(T value,
T defaultValue)
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TypeUtils
public TypeUtils()
-
Method Details
-
setType
public static <T> Class<Set<T>> setType()
-
mapType
public static <T,
V> Class<Map<T,V>> mapType()
-
-
nn
public static long nn(@Nullable
Long value,
long defaultValue)
-
nn
public static int nn(@Nullable
Integer value,
int defaultValue)
-
nnv
@NotNull
public static <T> T nnv(@Nullable
T value,
@NotNull
T defaultValue)
-
lv
public static long lv(String v,
long defaultValue)
-
iv
public static int iv(String v,
int defaultValue)
-
-
-
-
nnl
public static long nnl(Long value)
-
nni
public static int nni(Integer value)
-
fitsIntoInt
public static boolean fitsIntoInt(long value)