public class ToStringBuilder extends Object
toString()
method.
The code was pasted from the Hivemind container written by
Howard Lewis Ship.Modifier and Type | Field and Description |
---|---|
static int |
INCLUDE_HASHCODE |
static int |
INCLUDE_PACKAGE_PREFIX |
Constructor and Description |
---|
ToStringBuilder(Object target) |
ToStringBuilder(Object target,
int mode) |
Modifier and Type | Method and Description |
---|---|
void |
append(String attributeName,
boolean value) |
void |
append(String attributeName,
byte value) |
void |
append(String attributeName,
int value) |
void |
append(String attributeName,
Object value) |
void |
append(String attributeName,
short value) |
void |
append(String attributeName,
String value) |
static int |
getDefaultMode() |
static void |
setDefaultMode(int i) |
String |
toString()
Returns the final assembled string.
|
public static final int INCLUDE_PACKAGE_PREFIX
public static final int INCLUDE_HASHCODE
public ToStringBuilder(Object target)
public ToStringBuilder(Object target, int mode)
public static int getDefaultMode()
public static void setDefaultMode(int i)
public String toString()
Copyright © 2004–1970 The Apache Software Foundation. All rights reserved.