public static class

Objects.ToStringHelper

extends Object
java.lang.Object
   ↳ com.google.gdata.util.common.base.Objects.ToStringHelper

Class Overview

Helper class for generating consistent toString across ads/api pojos.

This class is made to support toStringHelper(Object).

Summary

Fields
private static final Joiner JOINER
private final List<String> fieldString
private final Object instance
Public Methods
Objects.ToStringHelper add(String name, Object value)
Adds a name/value pair to the formatted output in name=value format.
Objects.ToStringHelper addValue(Object value)
Adds a value to the formatted output in value format.
String toString()
Returns the formatted string.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static final Joiner JOINER

private final List<String> fieldString

private final Object instance

Public Methods

public Objects.ToStringHelper add (String name, Object value)

Adds a name/value pair to the formatted output in name=value format. If value is null, the string "null" is used.

Parameters
name
value

public Objects.ToStringHelper addValue (Object value)

Adds a value to the formatted output in value format.

It is strongly encouraged to use add(String, Object) instead and give value a readable name.

Parameters
value

public String toString ()

Returns the formatted string.