Class ToStringHelper

java.lang.Object
org.eclipse.xtext.xbase.lib.util.ToStringHelper
Direct Known Subclasses:
ToStringHelper

@Beta @Deprecated public class ToStringHelper extends Object
Deprecated.
A helper class to assist construction of proper Object.toString() implementation for value objects.
Since:
2.3
Author:
Sven Efftinge - Initial contribution and API
  • Constructor Details

  • Method Details

    • toString

      @Deprecated public String toString(Object obj)
      Deprecated.
      use new ToStringBuilder().addAllFields().toString()
      Creates a string representation of the given object by listing the internal state of all fields.
      Parameters:
      obj - the object that should be printed.
      Returns:
      the string representation. Never null.