public class ToStringBuilder extends Object
toString()
方法。Modifier and Type | Class and Description |
---|---|
static class |
ToStringBuilder.CollectionBuilder
创建值的列表。
|
static class |
ToStringBuilder.MapBuilder
创建一系列key/value值对。
|
static interface |
ToStringBuilder.StructureBuilder
可用来创建一个结构的builder,例如:map,collection等。
|
Constructor and Description |
---|
ToStringBuilder() |
ToStringBuilder(int indent) |
public ToStringBuilder()
public ToStringBuilder(int indent)
public void clear()
public IndentableStringBuilder out()
public boolean isPrintDescription()
public ToStringBuilder setPrintDescription(boolean printDescription)
public ToStringBuilder start()
public ToStringBuilder start(String beginQuote, String endQuote)
public ToStringBuilder end()
public ToStringBuilder format(String format, Object... args)
public ToStringBuilder append(boolean value)
public ToStringBuilder append(byte value)
public ToStringBuilder append(char value)
public ToStringBuilder append(double value)
public ToStringBuilder append(float value)
public ToStringBuilder append(int value)
public ToStringBuilder append(long value)
public ToStringBuilder append(short value)
public ToStringBuilder appendNull()
public ToStringBuilder append(Object value)
public ToStringBuilder appendDescription(Object value)
public ToStringBuilder appendHangingIndent(Object value)
public ToStringBuilder appendMap(Map<?,?> map)
public ToStringBuilder appendMap(Map<?,?> map, boolean sort)
public ToStringBuilder appendCollection(Collection<?> list)
public ToStringBuilder appendCollection(Collection<?> list, boolean oneLine)
public ToStringBuilder appendArray(Object[] list)
public ToStringBuilder appendArray(boolean[] list)
public ToStringBuilder appendArray(boolean[] list, int offset, int length)
public ToStringBuilder appendArray(byte[] list)
public ToStringBuilder appendArray(byte[] list, int offset, int length)
public ToStringBuilder appendArray(char[] list)
public ToStringBuilder appendArray(char[] list, int offset, int length)
public ToStringBuilder appendArray(double[] list)
public ToStringBuilder appendArray(double[] list, int offset, int length)
public ToStringBuilder appendArray(float[] list)
public ToStringBuilder appendArray(float[] list, int offset, int length)
public ToStringBuilder appendArray(int[] list)
public ToStringBuilder appendArray(int[] list, int offset, int length)
public ToStringBuilder appendArray(long[] list)
public ToStringBuilder appendArray(long[] list, int offset, int length)
public ToStringBuilder appendArray(short[] list)
public ToStringBuilder appendArray(short[] list, int offset, int length)
Copyright © 2006–2018 TinyGroup. All rights reserved.