Class MiscUtil
java.lang.Object
org.zeroturnaround.javarebel.integration.util.MiscUtil
- Author:
- Rein Raudjärv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>[]Adds a class to an array.static StringdumpToString(Object obj) Return a String representation of an object.static StringdumpToString(Collection<?> objects) static final ClassLoaderstatic ClassLoaderstatic inthash32(byte[] bytes) static inthash32(CharSequence data) static StringidentityToString(Class<?> klass) Return a String representation of a class' overall identity.static StringidentityToString(Class<?>[] classes) Return a String representation of a classes' overall identities.static StringidentityToString(Object obj) Return a String representation of an object's overall identity.static intindexOf(byte[] haystack, byte[] needle) static booleanisInContainerTempDir(File file) checks if provided file is in container temp dir, if container has temp dir integration present.static booleanobjectEquals(Object first, Object second) static final ClassLoaderstatic Stringstatic Stringstatic StringtoString(Collection<Object> c)
-
Constructor Details
-
MiscUtil
public MiscUtil()
-
-
Method Details
-
identityToString
Return a String representation of an object's overall identity.- Parameters:
obj- the object (may benull)- Returns:
- the object's identity as String representation,
or
nullString if the object wasnull
-
identityToString
Return a String representation of a class' overall identity.- Parameters:
klass- the class (may benull)- Returns:
- the class' identity as String representation,
or
nullString if the class wasnull
-
identityToString
Return a String representation of a classes' overall identities.- Parameters:
classes- the classes (may benull)- Returns:
- the classes' identities as String representation,
or
nullString if the class wasnull
-
dumpToString
-
dumpToString
Return a String representation of an object. UseObject.toString()for classes underorg.zeroturnaround.javarebelpackage. Otherwise useidentityToString(Object).- Parameters:
obj- the object (may benull)- Returns:
- a String representation of an object.
-
toString
-
toString
-
toString
-
add
Adds a class to an array. -
getSystemClassLoader
-
getContextClassLoader
-
setContextClassLoader
-
objectEquals
-
indexOf
public static int indexOf(byte[] haystack, byte[] needle) -
getVmArguments
-
isInContainerTempDir
checks if provided file is in container temp dir, if container has temp dir integration present. -
hash32
public static int hash32(byte[] bytes) -
hash32
-