类 Objects2.ToStringHelper

  • 封闭类:
    Objects2

    @Deprecated
    public static class Objects2.ToStringHelper
    extends java.lang.Object
    已过时。
    A class to convert object to string, by concat each filed name and value, using reflection. This class is immutable, use should reuse ToStringHelper for all instances of one type.
    • 构造器概要

      构造器 
      限定符 构造器 说明
      protected ToStringHelper​(java.lang.Class<?> cls)
      已过时。
       
    • 方法概要

      所有方法 实例方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      java.lang.String toString​(@Nullable java.lang.Object obj)
      已过时。
      Convert object to string.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ToStringHelper

        protected ToStringHelper​(java.lang.Class<?> cls)
        已过时。
    • 方法详细资料

      • toString

        public java.lang.String toString​(@Nullable java.lang.Object obj)
        已过时。
        Convert object to string. If Object has override toString method, will can this; else, will build string by concat all member fields of this object. Array field of object, will convert to string using Arrays.toString; otherwise, will use call field value's toString method.
        参数:
        obj - the value
        返回:
        the string representation of this object value. If object is null, return "null"