Package org.jboss.logging.processor.util
Class Objects.ToStringBuilder
java.lang.Object
org.jboss.logging.processor.util.Objects.ToStringBuilder
- Enclosing class:
Objects
A builder to build a default
Object#toString() value.
Not thread safe.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateToStringBuilder(String className) Private constructor for builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionAdds the field and value to the value returned.static Objects.ToStringBuilderCreates a new string builder for theclazz.static Objects.ToStringBuilderCreates a new string builder for theself.static Objects.ToStringBuilderCreates a new string builder for theclassName.toString()
-
Field Details
-
fieldValue
-
className
-
-
Constructor Details
-
ToStringBuilder
Private constructor for builder pattern.- Parameters:
className- the class name to prepend the result with.
-
-
Method Details
-
of
Creates a new string builder for theclazz.- Parameters:
clazz- the base class for the string result.- Returns:
- the current builder.
-
of
Creates a new string builder for theclassName.- Parameters:
className- the class name to prepend the string value with.- Returns:
- the current builder.
-
of
Creates a new string builder for theself.- Parameters:
self- the object to create the builder for.- Returns:
- the current builder.
-
add
-
add
Adds the field and value to the value returned.- Parameters:
field- the field for the value.value- the value of the field.- Returns:
- the current instance of the builder.
-
toString
-