Top Description Constructors Methods
org.eclipse.xtext.xbase.lib.util

public Class ToStringHelper

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.xtext.xbase.lib.internal.ToStringHelper
Annotations
@Beta
@Deprecated
Imports
com.google.common.annotations.Beta

Deprecated

use ToStringBuilder

A helper class to assist construction of proper Object#toString() implementation for value objects.
Author
Sven Efftinge - Initial contribution and API
Since
2.3

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string representation. Never null.
toString
(Object
the object that should be printed.
obj
)
Deprecated use new ToStringBuilder().addAllFields().toString()

Creates a string representation of the given object by listing the internal state of all fields.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ToStringHelperback to summary
public ToStringHelper()

Deprecated

use ToStringBuilder

Annotations
@Deprecated

Method Detail

toStringback to summary
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:Object

the object that should be printed.

Returns:String

the string representation. Never null.

Annotations
@Deprecated