Class ObjectUtils

java.lang.Object
org.openjdk.jol.util.ObjectUtils

public class ObjectUtils extends Object
  • Constructor Details

    • ObjectUtils

      public ObjectUtils()
  • Method Details

    • safeToString

      public static String safeToString(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 Object value(Object o, Field f)
      Get the object field value.
      Parameters:
      o - object to get field value from
      f - field descriptor
      Returns:
      value, maybe a boxed primitive