public interface VerboseTextBuilder
VerboseTextBuilder
us a utility-builder for creating human
readable String
objects from arrays, collections or maps (instead of
solely printing out the object references of those collections). The arrays,
collections or maps may be nested in any way still producing accordingly
indented and parenthesized text down to the single elements in those
collections whose Object.toString()
method is invoked . This
utility-builder is very useful when printing debug or error logs or
inspecting such the like data structures "on the fly".Modifier and Type | Method and Description |
---|---|
Object[] |
getElements()
Gets the elements for the elements property.
|
default void |
setElements(boolean[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Boolean[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(byte[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Byte[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(char[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Character[] aElements)
Sets the CSV elements for the CSV elements property.
|
void |
setElements(Collection<?> aElements)
Sets the elements for the elements property.
|
default void |
setElements(double[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Double[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(float[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Float[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(int[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Integer[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(long[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Long[] aElements)
Sets the CSV elements for the CSV elements property.
|
void |
setElements(Map<?,?> aElements)
Sets the elements for the elements property.
|
default void |
setElements(Object aElements)
Sets the elements for the elements property.
|
void |
setElements(Object[] aElements)
Sets the elements for the elements property.
|
default void |
setElements(short[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(Short[] aElements)
Sets the CSV elements for the CSV elements property.
|
default void |
setElements(String[] aElements)
Sets the CSV elements for the CSV elements property.
|
String |
toString()
The
String being build by the builder upon the settings of the
attributes. |
default String |
toString(boolean[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Boolean[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default String |
toString(byte[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Byte[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default String |
toString(char[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Character[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Collection<?> aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default String |
toString(double[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Double[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default String |
toString(float[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Float[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default String |
toString(int[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Integer[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default String |
toString(long[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Long[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Map<?,?> aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Object aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Object[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default String |
toString(short[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(Short[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
String |
toString(String[] aElements)
The
String being build by the builder upon the settings of the
attributes and the provided argument. |
default VerboseTextBuilder |
withElements(boolean[] aElements)
Sets the CSV elements for the CSV elements property.
|
default VerboseTextBuilder |
withElements(byte[] aElements)
Sets the CSV elements for the CSV elements property.
|
default VerboseTextBuilder |
withElements(char[] aElements)
Sets the CSV elements for the CSV elements property.
|
default VerboseTextBuilder |
withElements(Collection<?> aElements)
Sets the elements for the elements property.
|
default VerboseTextBuilder |
withElements(double[] aElements)
Sets the CSV elements for the CSV elements property.
|
default VerboseTextBuilder |
withElements(float[] aElements)
Sets the CSV elements for the CSV elements property.
|
default VerboseTextBuilder |
withElements(int[] aElements)
Sets the CSV elements for the CSV elements property.
|
default VerboseTextBuilder |
withElements(long[] aElements)
Sets the CSV elements for the CSV elements property.
|
default VerboseTextBuilder |
withElements(Map<?,?> aElements)
Sets the elements for the elements property.
|
default VerboseTextBuilder |
withElements(Object aElements)
Sets the elements for the elements property.
|
default VerboseTextBuilder |
withElements(Object[] aElements)
Sets the elements for the elements property.
|
default VerboseTextBuilder |
withElements(short[] aElements)
Sets the CSV elements for the CSV elements property.
|
Object[] getElements()
default void setElements(boolean[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(byte[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(short[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(int[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(long[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(float[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(double[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(char[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(boolean[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(byte[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(short[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(int[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(long[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(float[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(double[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default VerboseTextBuilder withElements(char[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Boolean[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Byte[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Short[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Integer[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Long[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Float[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Double[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(Character[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.default void setElements(String[] aElements)
aElements
- The CSV elements to be stored by the CSV elements
property.void setElements(Object[] aElements)
aElements
- The elements to be stored by the elements property.default VerboseTextBuilder withElements(Object[] aElements)
aElements
- The elements to be stored by the elements property.void setElements(Collection<?> aElements)
aElements
- The elements to be stored by the elements property.default VerboseTextBuilder withElements(Collection<?> aElements)
aElements
- The elements to be stored by the elements property.default void setElements(Object aElements)
aElements
- The elements to be stored by the elements property.default VerboseTextBuilder withElements(Object aElements)
aElements
- The elements to be stored by the elements property.void setElements(Map<?,?> aElements)
aElements
- The elements to be stored by the elements property.default VerboseTextBuilder withElements(Map<?,?> aElements)
aElements
- The elements to be stored by the elements property.String toString()
String
being build by the builder upon the settings of the
attributes.default String toString(boolean[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
default String toString(byte[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
default String toString(short[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
default String toString(int[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
default String toString(long[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
default String toString(float[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
default String toString(double[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
default String toString(char[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Boolean[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Byte[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Short[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Integer[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Long[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Float[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Double[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Character[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(String[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Object[] aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Collection<?> aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Object aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
String toString(Map<?,?> aElements)
String
being build by the builder upon the settings of the
attributes and the provided argument.
This method is to be side effect free in terms of the elements (and the
verbose result) are not part of the state for this instance (from the
point of view of this method). Still changing for example the elements
via withElements(Collection)
can cause side effects!
For avoiding thread race conditions / side effects regarding the elements
text (and the verbose result), use this method instead of the combination
of withElements(Collection)
with toString()
.aElements
- The elements to be stored by the elements property.String
Copyright © 2017. All rights reserved.