notes/pl/java/libfws/commons/lang/reflection.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

12 строки
689 B
Plaintext

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
ReflectionToStringBuilder.toString(obj, ToStringStyle.DEFAULT_STYLE, true, true); // JSON_STYLE
https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/builder/package-summary.html
https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/builder/RecursiveToStringStyle.html
https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/builder/MultilineRecursiveToStringStyle.html
recursive-case
https://stackoverflow.com/questions/3149951/java-tostring-tostringbuilder-not-sufficient-wont-traverse