Class ToStringBuilder
java.lang.Object
io.ebean.bean.ToStringBuilder
Helps build toString content taking into account recursion.
That is, it detects and handles the case where there are relationships that recurse and would otherwise become an infinite loop (e.g. bidirectional parent child).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a property as name value pair.voidaddCollection(Collection<?> c) Add a collection of values.voidvoidAdd raw content.voidend()End of an object.voidSet of an object being added.toString()
-
Constructor Details
-
ToStringBuilder
public ToStringBuilder()
-
-
Method Details
-
toString
-
start
Set of an object being added. -
add
-
addRaw
Add raw content. -
end
public void end()End of an object. -
addMap
-
addCollection
Add a collection of values.
-