Description combining multiple Descriptions. It'll honor the nested descriptions and will indent
them as appropriate.
| Modifier and Type | Class and Description |
|---|---|
| private static class | JoinDescription.
The wrapper for |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String | DELIMITER
Delimiter string between |
| pack-priv final Collection | |
| private static final String | |
| pack-priv final String | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| public | JoinDescription(String
The beginning part of this description. prefix, String The ending part of this description. suffix, Collection<Description> The descriptions to combine. descriptions)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| private JoinDescription. | |
| private static Description | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int | |
| public String |
| DEFAULT_INDENTATION | back to summary |
|---|---|
| private static final int DEFAULT_INDENTATION | |
| DELIMITER | back to summary |
|---|---|
| private static final String DELIMITER Delimiter string between | |
| descriptions | back to summary |
|---|---|
| pack-priv final Collection<Description> descriptions
| |
| LINE_SEPARATOR | back to summary |
|---|---|
| private static final String LINE_SEPARATOR | |
| prefix | back to summary |
|---|---|
| pack-priv final String prefix
| |
| suffix | back to summary |
|---|---|
| pack-priv final String suffix
| |
| JoinDescription | back to summary |
|---|---|
| public JoinDescription(String prefix, String suffix, Collection<Description> descriptions) Creates a new
| |
| appendIndentedValueTo | back to summary |
|---|---|
| private JoinDescription. | |
| checkNotNull | back to summary |
|---|---|
| private static Description checkNotNull(Description description) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| value | back to summary |
|---|---|
| public String value() Implements abstract org.
| |
StringBuilder aware of indentation.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final StringBuilder |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JoinDescription. | append(CharSequence
The character sequence to append. If charSequence)csq is
null, then the four characters "null" are
appended to this Appendable.Implements java. Appendable.
|
| public JoinDescription. | append(CharSequence
The character sequence from which a subsequence will be
appended. If charSequence, int csq is null, then characters
will be appended as if csq contained the four
characters "null".The index of the first character in the subsequence start, int The index of the character following the last character in the
subsequence end)Implements java. Appendable.
|
| public JoinDescription. | append(char
The character to append c)Implements java. Appendable.
|
| pack-priv JoinDescription. | Returns: a this instance.The indentation adjustment. indentation)Adjusts the indentation size by |
| pack-priv JoinDescription. | |
| pack-priv JoinDescription. | Returns: a this instance.The indentation adjustment. indentation)Shortcut method from |
| public String |
| currentIndentation | back to summary |
|---|---|
| private int currentIndentation | |
| stringBuilder | back to summary |
|---|---|
| private final StringBuilder stringBuilder | |
| IndentedAppendable | back to summary |
|---|---|
| pack-priv IndentedAppendable(StringBuilder stringBuilder) | |
| append | back to summary |
|---|---|
| public JoinDescription. Implements java. Doc from java. Appends the specified character sequence to this Depending on which class implements the character sequence
The contents of this
| |
| append | back to summary |
|---|---|
| public JoinDescription. Implements java. Doc from java. Appends a subsequence of the specified character sequence to this
An invocation of this method of the form
out.append(csq.subSequence(start, end))
The contents of this
| |
| append | back to summary |
|---|---|
| public JoinDescription. Implements java. Doc from java. Appends the specified character to this
| |
| changeIndentationBy | back to summary |
|---|---|
| pack-priv JoinDescription. Adjusts the indentation size by
| |
| indent | back to summary |
|---|---|
| pack-priv JoinDescription. Appends the indentation according to current size.
| |
| indentBy | back to summary |
|---|---|
| pack-priv JoinDescription. Shortcut method from
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |