Package dev.drtheo.autojson.util
Class UnsafeUtil
java.lang.Object
dev.drtheo.autojson.util.UnsafeUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> V computeIfAbsent(Map<K, V> cache, K key, Function<? super K, ? extends V> function) static booleanstatic booleanstatic booleanstatic booleanisPrimitive(Type type) static bytestatic doubleparseDouble(String str) static floatparseFloat(String str) static intstatic longstatic shortparseShort(String str)
-
Field Details
-
UNSAFE
public static final sun.misc.Unsafe UNSAFE
-
-
Constructor Details
-
UnsafeUtil
public UnsafeUtil()
-
-
Method Details
-
computeIfAbsent
-
isPrimitive
-
isChar
-
isNumber
-
isBool
-
parseInt
-
parseDouble
-
parseLong
-
parseFloat
-
parseShort
-
parseByte
-