Class Util
java.lang.Object
com.esotericsoftware.kryo.util.Util
A few utility methods, mostly for private use.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the class formatted as a string.static intgetDimensionCount(Class arrayClass) Returns the number of dimensions of an array.static ClassgetElementClass(Class arrayClass) Returns the base element type of an n-dimensional array class.static ClassgetPrimitiveClass(Class type) Returns the primitive class for a primitive wrapper class.static ClassgetWrapperClass(Class type) Returns the primitive wrapper class for a primitive class.static booleanisClassAvailable(String className) static booleanisWrapperClass(Class type) static voidLogs a message about an object.static StringReturns the object formatted as a string.
-
Field Details
-
isAndroid
public static final boolean isAndroid -
maxArraySize
public static final int maxArraySize- See Also:
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
isClassAvailable
-
getWrapperClass
-
getPrimitiveClass
-
isWrapperClass
-
log
-
string
Returns the object formatted as a string. The format depends on the object's type and whetherObject.toString()has been overridden. -
className
-
getDimensionCount
Returns the number of dimensions of an array. -
getElementClass
-