ToStringHelper function ( Object arg0 ) { return new ToStringHelper ( simpleName ( arg0 . getClass ( ) ) ) ; }
creates an instance of tostringhelper . this is helpful for implementing object #tostring . specification by example : / / returns `` classname '' objects.tostringhelper this . tostring ; / / returns `` classname x = 1 '' objects.tostringhelper this . add `` x '' , 1 . tostring ; / / returns `` myobject x = 1 '' objects.tostringhelper `` myobject '' . add `` x '' , 1 . tostring ; / / returns `` classname x = 1 , y = foo '' objects.tostringhelper this . add `` x '' , 1 . add `` y '' , `` foo '' . tostring ; / / returns `` classname x = 1 '' objects.tostringhelper this . omitnullvalues . add `` x '' , 1 . add `` y '' , null . tostring ; note that in gwt , class names are often obfuscated . concode_field_sep ValueHolder next concode_elem_sep ValueHolder holderTail concode_elem_sep String name concode_elem_sep String className concode_elem_sep boolean omitNullValues concode_elem_sep ValueHolder holderHead concode_elem_sep Object value concode_field_sep boolean equal concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper omitNullValues concode_elem_sep ValueHolder addHolder concode_elem_sep ToStringHelper addHolder concode_elem_sep ToStringHelper addHolder concode_elem_sep String simpleName concode_elem_sep int hashCode concode_elem_sep T firstNonNull concode_elem_sep String toString concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue