Package org.openjdk.jol.util
Class ObjectUtils
- java.lang.Object
-
- org.openjdk.jol.util.ObjectUtils
-
public class ObjectUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ObjectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
safeToString(java.lang.Object o)
Produces the toString string, only calling toString() on known types, which do not mutate the instance.static java.lang.Object
value(java.lang.Object o, java.lang.reflect.Field f)
Get the object field value.
-
-
-
Method Detail
-
safeToString
public static java.lang.String safeToString(java.lang.Object o)
Produces the toString string, only calling toString() on known types, which do not mutate the instance.- Parameters:
o
- object to process- Returns:
- toString
-
value
public static java.lang.Object value(java.lang.Object o, java.lang.reflect.Field f)
Get the object field value.- Parameters:
o
- object to get field value fromf
- field descriptor- Returns:
- value, maybe a boxed primitive
-
-