-
public final class Primitives
-
-
Method Summary
Modifier and Type Method Description static longcurrentArtThread()static voidsetObjectClass(Object target, Class<out Object> newClass)static voidsetSuperClass(Class<out Object> target, Class<out Object> newSuperClass)static intgetFieldOffset(Field field)static voidremoveClassFinalFlag(Class<out Object> target)static longgetAddress(Object o)static Array<byte>int2Bytes(int value)static intbytes2Int(Array<byte> src)static longints2Long(int l, int h)static doubleints2Double(int a, int b)static doublefloats2Double(float l, float h)static intevenUp(int n)-
-
Method Detail
-
currentArtThread
static long currentArtThread()
-
setObjectClass
static void setObjectClass(Object target, Class<out Object> newClass)
-
setSuperClass
static void setSuperClass(Class<out Object> target, Class<out Object> newSuperClass)
-
getFieldOffset
static int getFieldOffset(Field field)
-
removeClassFinalFlag
static void removeClassFinalFlag(Class<out Object> target)
-
getAddress
static long getAddress(Object o)
-
ints2Long
static long ints2Long(int l, int h)
-
ints2Double
static double ints2Double(int a, int b)
-
floats2Double
static double floats2Double(float l, float h)
-
evenUp
static int evenUp(int n)
-
-
-
-