Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectUtils

        public ObjectUtils()
    • 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 from
        f - field descriptor
        Returns:
        value, maybe a boxed primitive