Package org.refcodes.textual
Class VerboseTextBuilderImpl
- java.lang.Object
-
- org.refcodes.textual.VerboseTextBuilderImpl
-
- All Implemented Interfaces:
VerboseTextBuilder
public class VerboseTextBuilderImpl extends java.lang.Object implements VerboseTextBuilder
The Class VerboseTextBuilderImpl.- Author:
- steiner
-
-
Constructor Summary
Constructors Constructor Description VerboseTextBuilderImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getElements()
Gets the elements for the elements property.void
setElements(java.lang.Object[] aElements)
Sets the elements for the elements property.void
setElements(java.util.Collection<?> aElements)
Sets the elements.void
setElements(java.util.Map<?,?> aElements)
Sets the elements.java.lang.String
toString()
TheString
being build by the builder upon the settings of the attributes.java.lang.String
toString(java.lang.Boolean[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Byte[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Character[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Double[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Float[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Integer[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Long[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Object aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Object[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.Short[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.lang.String[] aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.util.Collection<?> aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.java.lang.String
toString(java.util.Map<?,?> aElements)
TheString
being build by the builder upon the settings of the attributes and the provided argument.protected static java.lang.String
toVerboseString(java.util.Collection<?> aCollection)
To verbose string.protected static java.lang.String
toVerboseString(java.util.Map<?,?> aMap)
To verbose string.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.refcodes.textual.VerboseTextBuilder
setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, setElements, toString, toString, toString, toString, toString, toString, toString, toString, withElements, withElements, withElements, withElements, withElements, withElements, withElements, withElements, withElements, withElements, withElements, withElements
-
-
-
-
Method Detail
-
getElements
public java.lang.Object[] getElements()
Gets the elements for the elements property.- Specified by:
getElements
in interfaceVerboseTextBuilder
- Returns:
- The elements being stored by the elements property.
-
setElements
public void setElements(java.lang.Object[] aElements)
Sets the elements for the elements property.- Specified by:
setElements
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.
-
setElements
public void setElements(java.util.Collection<?> aElements)
Sets the elements.- Specified by:
setElements
in interfaceVerboseTextBuilder
- Parameters:
aElements
- the new elements
-
setElements
public void setElements(java.util.Map<?,?> aElements)
Sets the elements.- Specified by:
setElements
in interfaceVerboseTextBuilder
- Parameters:
aElements
- the elements
-
toString
public java.lang.String toString()
TheString
being build by the builder upon the settings of the attributes.- Specified by:
toString
in interfaceVerboseTextBuilder
- Overrides:
toString
in classjava.lang.Object
- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.util.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.util.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toString
public java.lang.String toString(java.lang.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 viaVerboseTextBuilder.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 ofVerboseTextBuilder.withElements(Collection)
withVerboseTextBuilder.toString()
.- Specified by:
toString
in interfaceVerboseTextBuilder
- Parameters:
aElements
- The elements to be stored by the elements property.- Returns:
- The according resulting
String
-
toVerboseString
protected static java.lang.String toVerboseString(java.util.Collection<?> aCollection)
To verbose string.- Parameters:
aCollection
- the collection- Returns:
- the string
-
toVerboseString
protected static java.lang.String toVerboseString(java.util.Map<?,?> aMap)
To verbose string.- Parameters:
aMap
- the map- Returns:
- the string
-
-