- java.lang.Object
-
- org.refcodes.textual.VerboseTextBuilder
-
public class VerboseTextBuilder extends Object
TheVerboseTextBuilder
us a utility-builder for creating human readableString
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 whoseObject.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".
-
-
Field Summary
Fields Modifier and Type Field Description static char
DEFAULT_COLLECTION_HEAD
static char
DEFAULT_COLLECTION_TAIL
-
Constructor Summary
Constructors Constructor Description VerboseTextBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
asString(boolean[] aElements)
This method represents a shortcut for the instance methodtoString(boolean[])
though with public settings.static String
asString(byte[] aElements)
This method represents a shortcut for the instance methodtoString(byte[])
though with public settings.static String
asString(char[] aElements)
This method represents a shortcut for the instance methodtoString(char[])
though with public settings.static String
asString(double[] aElements)
This method represents a shortcut for the instance methodtoString(double[])
though with public settings.static String
asString(float[] aElements)
This method represents a shortcut for the instance methodtoString(float[])
though with public settings.static String
asString(int[] aElements)
This method represents a shortcut for the instance methodtoString(int[])
though with public settings.static String
asString(long[] aElements)
This method represents a shortcut for the instance methodtoString(long[])
though with public settings.static String
asString(short[] aElements)
This method represents a shortcut for the instance methodtoString(short[])
though with public settings.static String
asString(Boolean[] aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.static String
asString(Byte[] aElements)
This method represents a shortcut for the instance methodtoString(Byte[])
though with public settings.static String
asString(Character[] aElements)
This method represents a shortcut for the instance methodtoString(Character[])
though with public settings.static String
asString(Double[] aElements)
This method represents a shortcut for the instance methodtoString(Double[])
though with public settings.static String
asString(Float[] aElements)
This method represents a shortcut for the instance methodtoString(Float[])
though with public settings.static String
asString(Integer[] aElements)
This method represents a shortcut for the instance methodtoString(Integer[])
though with public settings.static String
asString(Long[] aElements)
This method represents a shortcut for the instance methodtoString(Long[])
though with public settings.static String
asString(Object aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.static String
asString(Object[] aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.static String
asString(Short[] aElements)
This method represents a shortcut for the instance methodtoString(Short[])
though with public settings.static String
asString(String[] aElements)
This method represents a shortcut for the instance methodtoString(String[])
though with public settings.static String
asString(Collection<?> aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.static String
asString(Map<?,?> aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.protected static String
asVerboseString(Character aCollectionHead, Collection<?> aCollection, Character aCollectionTail)
To verbose string.protected static String
asVerboseString(Character aCollectionHead, Map<?,?> aMap, Character aCollectionTail)
To verbose string.Character
getCollectionHead()
Gets theString
to be used for the begin of a collection.Character
getCollectionTail()
gets theString
to be used for the begin of a collection.Object[]
getElements()
Gets the elements for the elements property.void
setCollectionHead(Character aHead)
Sets theString
to be used for the begin of a collection.void
setCollectionTail(Character aTail)
Sets theString
to be used for the begin of a collection.void
setElements(boolean[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(byte[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(char[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(double[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(float[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(int[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(long[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(short[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Boolean[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Byte[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Character[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Double[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Float[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Integer[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Long[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Object aElements)
Sets the elements for the elements property.void
setElements(Object[] aElements)
Sets the elements for the elements property.void
setElements(Short[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(String[] aElements)
Sets the CSV elements for the CSV elements property.void
setElements(Collection<?> aElements)
Sets the elements.void
setElements(Map<?,?> aElements)
Sets the elements for the elements property.String
toString()
TheString
being build by the builder upon the settings of the attributes.String
toString(boolean[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(byte[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(char[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(double[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(float[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(int[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(long[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(short[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Boolean[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Byte[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Character[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Double[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Float[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Integer[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Long[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Object aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Object[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Short[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(String[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Collection<?> aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.String
toString(Map<?,?> aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.VerboseTextBuilder
withCollectionHead(Character aHead)
Sets theString
to be used for the begin of a collection.VerboseTextBuilder
withElements(boolean[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(byte[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(char[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(double[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(float[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(int[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(long[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(short[] aElements)
Sets the CSV elements for the CSV elements property.VerboseTextBuilder
withElements(Object aElements)
Sets the elements for the elements property.VerboseTextBuilder
withElements(Object[] aElements)
Sets the elements for the elements property.VerboseTextBuilder
withElements(Collection<?> aElements)
Sets the elements for the elements property.VerboseTextBuilder
withElements(Map<?,?> aElements)
Sets the elements for the elements property.
-
-
-
Field Detail
-
DEFAULT_COLLECTION_HEAD
public static final char DEFAULT_COLLECTION_HEAD
- See Also:
- Constant Field Values
-
DEFAULT_COLLECTION_TAIL
public static final char DEFAULT_COLLECTION_TAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCollectionHead
public void setCollectionHead(Character aHead)
Sets theString
to be used for the begin of a collection.- Parameters:
aHead
- The begin of a collection.
-
getCollectionHead
public Character getCollectionHead()
Gets theString
to be used for the begin of a collection.- Returns:
- The begin of a collection.
-
setCollectionTail
public void setCollectionTail(Character aTail)
Sets theString
to be used for the begin of a collection.- Parameters:
aTail
- The begin of a collection.
-
getCollectionTail
public Character getCollectionTail()
gets theString
to be used for the begin of a collection.- Returns:
- The begin of a collection.
-
getElements
public Object[] getElements()
Gets the elements for the elements property.- Returns:
- The elements being stored by the elements property.
-
setElements
public void setElements(Object[] aElements)
Sets the elements for the elements property.- Parameters:
aElements
- The elements to be stored by the elements property.
-
setElements
public void setElements(Collection<?> aElements)
Sets the elements.- Parameters:
aElements
- the new elements
-
setElements
public void setElements(Map<?,?> aElements)
Sets the elements for the elements property.- Parameters:
aElements
- The elements to be stored by the elements property.
-
setElements
public void setElements(boolean[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(byte[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(short[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(int[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(long[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(float[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(double[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(char[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
withElements
public VerboseTextBuilder withElements(boolean[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(byte[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(short[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(int[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(long[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(float[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(double[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(char[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.- Returns:
- The builder for applying multiple build operations.
-
setElements
public void setElements(Boolean[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(Byte[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(Short[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(Integer[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(Long[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(Float[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(Double[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(Character[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
setElements
public void setElements(String[] aElements)
Sets the CSV elements for the CSV elements property.- Parameters:
aElements
- The CSV elements to be stored by the CSV elements property.
-
withElements
public VerboseTextBuilder withElements(Object[] aElements)
Sets the elements for the elements property.- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(Collection<?> aElements)
Sets the elements for the elements property.- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The builder for applying multiple build operations.
-
setElements
public void setElements(Object aElements)
Sets the elements for the elements property.- Parameters:
aElements
- The elements to be stored by the elements property.
-
withElements
public VerboseTextBuilder withElements(Object aElements)
Sets the elements for the elements property.- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The builder for applying multiple build operations.
-
withElements
public VerboseTextBuilder withElements(Map<?,?> aElements)
Sets the elements for the elements property.- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The builder for applying multiple build operations.
-
toString
public String toString()
TheString
being build by the builder upon the settings of the attributes.
-
toString
public String toString(boolean[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(byte[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(short[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(int[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(long[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(float[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(double[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(char[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Boolean[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Byte[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Short[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Integer[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Long[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Float[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Double[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Character[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(String[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Object[] aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Collection<?> aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
toString
public String toString(Map<?,?> aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
withCollectionHead
public VerboseTextBuilder withCollectionHead(Character aHead)
Sets theString
to be used for the begin of a collection.- Parameters:
aHead
- The begin of a collection.- Returns:
- This instance as of the builder pattern.
-
toString
public String toString(Object aElements)
TheString
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 viawithElements(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 ofwithElements(Collection)
withtoString()
.
-
asString
public static String asString(boolean[] aElements)
This method represents a shortcut for the instance methodtoString(boolean[])
though with public settings.
-
asString
public static String asString(byte[] aElements)
This method represents a shortcut for the instance methodtoString(byte[])
though with public settings.
-
asString
public static String asString(short[] aElements)
This method represents a shortcut for the instance methodtoString(short[])
though with public settings.
-
asString
public static String asString(int[] aElements)
This method represents a shortcut for the instance methodtoString(int[])
though with public settings.
-
asString
public static String asString(long[] aElements)
This method represents a shortcut for the instance methodtoString(long[])
though with public settings.
-
asString
public static String asString(float[] aElements)
This method represents a shortcut for the instance methodtoString(float[])
though with public settings.
-
asString
public static String asString(double[] aElements)
This method represents a shortcut for the instance methodtoString(double[])
though with public settings.
-
asString
public static String asString(char[] aElements)
This method represents a shortcut for the instance methodtoString(char[])
though with public settings.
-
asString
public static String asString(Boolean[] aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.
-
asString
public static String asString(Byte[] aElements)
This method represents a shortcut for the instance methodtoString(Byte[])
though with public settings.
-
asString
public static String asString(Short[] aElements)
This method represents a shortcut for the instance methodtoString(Short[])
though with public settings.
-
asString
public static String asString(Integer[] aElements)
This method represents a shortcut for the instance methodtoString(Integer[])
though with public settings.
-
asString
public static String asString(Long[] aElements)
This method represents a shortcut for the instance methodtoString(Long[])
though with public settings.
-
asString
public static String asString(Float[] aElements)
This method represents a shortcut for the instance methodtoString(Float[])
though with public settings.
-
asString
public static String asString(Double[] aElements)
This method represents a shortcut for the instance methodtoString(Double[])
though with public settings.
-
asString
public static String asString(Character[] aElements)
This method represents a shortcut for the instance methodtoString(Character[])
though with public settings.
-
asString
public static String asString(String[] aElements)
This method represents a shortcut for the instance methodtoString(String[])
though with public settings.
-
asString
public static String asString(Object[] aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.
-
asString
public static String asString(Collection<?> aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.
-
asString
public static String asString(Map<?,?> aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.
-
asString
public static String asString(Object aElements)
This method represents a shortcut for the instance methodtoString(Boolean[])
though with public settings.
-
asVerboseString
protected static String asVerboseString(Character aCollectionHead, Collection<?> aCollection, Character aCollectionTail)
To verbose string.- Parameters:
aCollectionHead
- The head sequence for the collection.aCollection
- the collectionaCollectionTail
- The tail sequence for the collection.- Returns:
- the string
-
asVerboseString
protected static String asVerboseString(Character aCollectionHead, Map<?,?> aMap, Character aCollectionTail)
To verbose string.- Parameters:
aCollectionHead
- The head sequence for the collection.aMap
- the mapaCollectionTail
- The tail sequence for the collection.- Returns:
- the string
-
-