类 Objects2.ToStringHelper
- java.lang.Object
-
- net.dongliu.commons.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.
-
-
构造器概要
构造器 限定符 构造器 说明 protectedToStringHelper(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"
-
-