public abstract class MiscUtil extends Object
| Constructor and Description |
|---|
MiscUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?>[] |
add(Class<?>[] array,
Class<?> element)
Adds a class to an array.
|
static String |
dumpToString(Object obj)
Return a String representation of an object.
|
static ClassLoader |
getContextClassLoader() |
static ClassLoader |
getSystemClassLoader() |
static List<String> |
getVmArguments() |
static String |
identityToString(Class<?> klass)
Return a String representation of a class' overall identity.
|
static String |
identityToString(Class<?>[] classes)
Return a String representation of a classes' overall identities.
|
static String |
identityToString(Object obj)
Return a String representation of an object's overall identity.
|
static boolean |
is32bit() |
static boolean |
is64bit() |
static boolean |
isAmd64() |
static boolean |
isJava5() |
static boolean |
isJava6() |
static boolean |
isJava7() |
static boolean |
isJava8() |
static boolean |
isJava9() |
static boolean |
isLinux() |
static boolean |
isMac() |
static boolean |
isWindows() |
static boolean |
isWindows9x() |
static ClassLoader |
setContextClassLoader(ClassLoader cl) |
static String |
toString(Collection<Object> c) |
static String |
toString(Object[] a) |
public static boolean isJava5()
public static boolean isJava6()
public static boolean isJava7()
public static boolean isJava8()
public static boolean isJava9()
public static boolean isWindows()
public static boolean isWindows9x()
public static boolean is32bit()
public static boolean is64bit()
public static boolean isMac()
public static boolean isLinux()
public static boolean isAmd64()
public static String identityToString(Object obj)
obj - the object (may be null)null String if the object was nullpublic static String identityToString(Class<?> klass)
klass - the class (may be null)null String if the class was nullpublic static String identityToString(Class<?>[] classes)
classes - the classes (may be null)null String if the class was nullpublic static String dumpToString(Object obj)
Object.toString() for classes under org.zeroturnaround.javarebel package.
Otherwise use identityToString(Object).obj - the object (may be null)public static String toString(Collection<Object> c)
public static ClassLoader getSystemClassLoader()
public static final ClassLoader getContextClassLoader()
public static final ClassLoader setContextClassLoader(ClassLoader cl)
Copyright © 2016. All rights reserved.