public class ToStringBuilder
extends org.apache.commons.lang.builder.ReflectionToStringBuilder
ReflectionToStringBuilder to further style and inline the children elements.| Modifier and Type | Class and Description |
|---|---|
static class |
ToStringBuilder.DetailLevel
The detail level
|
| Constructor and Description |
|---|
ToStringBuilder(Object object) |
ToStringBuilder(Object object,
ToStringBuilder.DetailLevel level) |
| Modifier and Type | Method and Description |
|---|---|
ToStringBuilder |
excludeFieldNames(String... fieldNames)
Sets the field names to exclude.
|
static void |
setDetailLevel(ToStringBuilder.DetailLevel level)
Sets the context detail level.
|
accept, appendFieldsIn, getExcludeFieldNames, getUpToClass, getValue, isAppendStatics, isAppendTransients, reflectionAppendArray, setAppendStatics, setAppendTransients, setExcludeFieldNames, setUpToClass, toString, toString, toString, toString, toString, toString, toString, toStringExclude, toStringExclude, toStringExcludeappend, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendAsObjectToString, appendSuper, appendToString, getDefaultStyle, getObject, getStringBuffer, getStyle, reflectionToString, reflectionToString, reflectionToString, reflectionToString, setDefaultStylepublic ToStringBuilder(Object object)
object - the instancepublic ToStringBuilder(Object object, ToStringBuilder.DetailLevel level)
object - the instancelevel - the static detail levelpublic static void setDetailLevel(ToStringBuilder.DetailLevel level)
level - the detail level to setpublic ToStringBuilder excludeFieldNames(String... fieldNames)
fieldNames - The excludeFieldNames to excluding from toString or null.thisCopyright © 2012-2013 Batoo. All Rights Reserved.