/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/builder/ |
D | ToStringBuilderTest.java | 43 assertEquals("<null>", new ToStringBuilder(null).toString()); in testConstructorEx1() 48 assertEquals("<null>", new ToStringBuilder(null, null).toString()); in testConstructorEx2() 49 new ToStringBuilder(this.base, null).toString(); in testConstructorEx2() 54 assertEquals("<null>", new ToStringBuilder(null, null, null).toString()); in testConstructorEx3() 55 new ToStringBuilder(this.base, null, null).toString(); in testConstructorEx3() 56 new ToStringBuilder(this.base, ToStringStyle.DEFAULT_STYLE, null).toString(); in testConstructorEx3() 62 ToStringBuilder.setDefaultStyle(ToStringStyle.NO_FIELD_NAMES_STYLE); in testGetSetDefault() 63 assertSame(ToStringStyle.NO_FIELD_NAMES_STYLE, ToStringBuilder.getDefaultStyle()); in testGetSetDefault() 66 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in testGetSetDefault() 72 assertThrows(NullPointerException.class, () -> ToStringBuilder.setDefaultStyle(null)); in testSetDefaultEx() [all …]
|
D | SimpleToStringStyleTest.java | 39 ToStringBuilder.setDefaultStyle(ToStringStyle.SIMPLE_STYLE); in setUp() 44 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 49 assertEquals("", new ToStringBuilder(base).toString()); in testBlank() 54 assertEquals("", new ToStringBuilder(base).appendSuper("").toString()); in testAppendSuper() 55 assertEquals("<null>", new ToStringBuilder(base).appendSuper("<null>").toString()); in testAppendSuper() 57 … assertEquals("hello", new ToStringBuilder(base).appendSuper("").append("a", "hello").toString()); in testAppendSuper() 58 …assertEquals("<null>,hello", new ToStringBuilder(base).appendSuper("<null>").append("a", "hello").… in testAppendSuper() 59 …assertEquals("hello", new ToStringBuilder(base).appendSuper(null).append("a", "hello").toString()); in testAppendSuper() 66 assertEquals("<null>", new ToStringBuilder(base).append((Object) null).toString()); in testObject() 67 assertEquals("3", new ToStringBuilder(base).append(i3).toString()); in testObject() [all …]
|
D | NoClassNameToStringStyleTest.java | 39 ToStringBuilder.setDefaultStyle(ToStringStyle.NO_CLASS_NAME_STYLE); in setUp() 44 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 49 assertEquals("[]", new ToStringBuilder(base).toString()); in testBlank() 54 assertEquals("[]", new ToStringBuilder(base).appendSuper("Integer@8888[]").toString()); in testAppendSuper() 55 …assertEquals("[<null>]", new ToStringBuilder(base).appendSuper("Integer@8888[<null>]").toString()); in testAppendSuper() 57 …assertEquals("[a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[]").append("a", "hel… in testAppendSuper() 58 …assertEquals("[<null>,a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[<null>]").app… in testAppendSuper() 59 …assertEquals("[a=hello]", new ToStringBuilder(base).appendSuper(null).append("a", "hello").toStrin… in testAppendSuper() 66 assertEquals("[<null>]", new ToStringBuilder(base).append((Object) null).toString()); in testObject() 67 assertEquals("[3]", new ToStringBuilder(base).append(i3).toString()); in testObject() [all …]
|
D | DefaultToStringStyleTest.java | 40 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in setUp() 45 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 50 assertEquals(baseStr + "[]", new ToStringBuilder(base).toString()); in testBlank() 55 … assertEquals(baseStr + "[]", new ToStringBuilder(base).appendSuper("Integer@8888[]").toString()); in testAppendSuper() 56 …assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).appendSuper("Integer@8888[<null>]").t… in testAppendSuper() 58 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[]").append… in testAppendSuper() 59 …assertEquals(baseStr + "[<null>,a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[<nu… in testAppendSuper() 60 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper(null).append("a", "hello… in testAppendSuper() 67 … assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) null).toString()); in testObject() 68 assertEquals(baseStr + "[3]", new ToStringBuilder(base).append(i3).toString()); in testObject() [all …]
|
D | NoFieldNamesToStringStyleTest.java | 40 ToStringBuilder.setDefaultStyle(ToStringStyle.NO_FIELD_NAMES_STYLE); in setUp() 45 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 50 assertEquals(baseStr + "[]", new ToStringBuilder(base).toString()); in testBlank() 55 … assertEquals(baseStr + "[]", new ToStringBuilder(base).appendSuper("Integer@8888[]").toString()); in testAppendSuper() 56 …assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).appendSuper("Integer@8888[<null>]").t… in testAppendSuper() 58 …assertEquals(baseStr + "[hello]", new ToStringBuilder(base).appendSuper("Integer@8888[]").append("… in testAppendSuper() 59 …assertEquals(baseStr + "[<null>,hello]", new ToStringBuilder(base).appendSuper("Integer@8888[<null… in testAppendSuper() 60 …assertEquals(baseStr + "[hello]", new ToStringBuilder(base).appendSuper(null).append("a", "hello")… in testAppendSuper() 67 … assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) null).toString()); in testObject() 68 assertEquals(baseStr + "[3]", new ToStringBuilder(base).append(i3).toString()); in testObject() [all …]
|
D | ShortPrefixToStringStyleTest.java | 40 ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); in setUp() 45 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 50 assertEquals(baseStr + "[]", new ToStringBuilder(base).toString()); in testBlank() 55 … assertEquals(baseStr + "[]", new ToStringBuilder(base).appendSuper("Integer@8888[]").toString()); in testAppendSuper() 56 …assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).appendSuper("Integer@8888[<null>]").t… in testAppendSuper() 58 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[]").append… in testAppendSuper() 59 …assertEquals(baseStr + "[<null>,a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[<nu… in testAppendSuper() 60 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper(null).append("a", "hello… in testAppendSuper() 67 … assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) null).toString()); in testObject() 68 assertEquals(baseStr + "[3]", new ToStringBuilder(base).append(i3).toString()); in testObject() [all …]
|
D | StandardToStringStyleTest.java | 64 ToStringBuilder.setDefaultStyle(STYLE); in setUp() 69 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 74 assertEquals(baseStr + "[]", new ToStringBuilder(base).toString()); in testBlank() 79 … assertEquals(baseStr + "[]", new ToStringBuilder(base).appendSuper("Integer@8888[]").toString()); in testAppendSuper() 80 …assertEquals(baseStr + "[%NULL%]", new ToStringBuilder(base).appendSuper("Integer@8888[%NULL%]").t… in testAppendSuper() 82 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[]").append… in testAppendSuper() 83 …assertEquals(baseStr + "[%NULL%,a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[%NU… in testAppendSuper() 84 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper(null).append("a", "hello… in testAppendSuper() 91 … assertEquals(baseStr + "[%NULL%]", new ToStringBuilder(base).append((Object) null).toString()); in testObject() 92 assertEquals(baseStr + "[3]", new ToStringBuilder(base).append(i3).toString()); in testObject() [all …]
|
D | RecursiveToStringStyleTest.java | 39 ToStringBuilder.setDefaultStyle(new RecursiveToStringStyle()); in setUp() 44 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 49 assertEquals(baseStr + "[]", new ToStringBuilder(base).toString()); in testBlank() 54 … assertEquals(baseStr + "[]", new ToStringBuilder(base).appendSuper("Integer@8888[]").toString()); in testAppendSuper() 55 …assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).appendSuper("Integer@8888[<null>]").t… in testAppendSuper() 57 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[]").append… in testAppendSuper() 58 …assertEquals(baseStr + "[<null>,a=hello]", new ToStringBuilder(base).appendSuper("Integer@8888[<nu… in testAppendSuper() 59 …assertEquals(baseStr + "[a=hello]", new ToStringBuilder(base).appendSuper(null).append("a", "hello… in testAppendSuper() 68 … assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) null).toString()); in testObject() 69 assertEquals(baseStr + "[3]", new ToStringBuilder(base).append(i3).toString()); in testObject() [all …]
|
D | JsonToStringStyleTest.java | 46 ToStringBuilder.setDefaultStyle(ToStringStyle.JSON_STYLE); in setUp() 51 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 56 assertEquals("null", new ToStringBuilder(null).toString()); in testNull() 61 assertEquals("{}", new ToStringBuilder(base).toString()); in testBlank() 68 new ToStringBuilder(base).appendSuper( in testAppendSuper() 73 new ToStringBuilder(base).appendSuper( in testAppendSuper() 78 new ToStringBuilder(base) in testAppendSuper() 84 new ToStringBuilder(base) in testAppendSuper() 89 assertEquals("{\"a\":\"hello\"}", new ToStringBuilder(base) in testAppendSuper() 92 assertEquals("{\"a\":\"hello\",\"b\":\"world\"}", new ToStringBuilder(base) in testAppendSuper() [all …]
|
D | MultiLineToStringStyleTest.java | 40 ToStringBuilder.setDefaultStyle(ToStringStyle.MULTI_LINE_STYLE); in setUp() 45 ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE); in tearDown() 50 … assertEquals(baseStr + "[" + System.lineSeparator() + "]", new ToStringBuilder(base).toString()); in testBlank() 55 …assertEquals(baseStr + "[" + System.lineSeparator() + "]", new ToStringBuilder(base).appendSuper("… in testAppendSuper() 56 …tem.lineSeparator() + " <null>" + System.lineSeparator() + "]", new ToStringBuilder(base).appendS… in testAppendSuper() 58 …em.lineSeparator() + " a=hello" + System.lineSeparator() + "]", new ToStringBuilder(base).appendS… in testAppendSuper() 59 …em.lineSeparator() + " a=hello" + System.lineSeparator() + "]", new ToStringBuilder(base).appendS… in testAppendSuper() 60 …em.lineSeparator() + " a=hello" + System.lineSeparator() + "]", new ToStringBuilder(base).appendS… in testAppendSuper() 67 …tem.lineSeparator() + " <null>" + System.lineSeparator() + "]", new ToStringBuilder(base).append(… in testObject() 68 …+ System.lineSeparator() + " 3" + System.lineSeparator() + "]", new ToStringBuilder(base).append(… in testObject() [all …]
|
D | DiffResultTest.java | 106 final String lhsString = new ToStringBuilder(SIMPLE_FALSE, in testToStringSpecifyStyleOutput() 110 final String rhsString = new ToStringBuilder(SIMPLE_TRUE, in testToStringSpecifyStyleOutput()
|
D | ToStringStyleConcurrencyTest.java | 96 new ToStringBuilder(holder).append(holder.collection); in testConcurrency()
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/builder/ |
D | ToStringBuilder.java | 90 public class ToStringBuilder implements Builder<String> { class 218 public ToStringBuilder(final Object object) { in ToStringBuilder() method in ToStringBuilder 230 public ToStringBuilder(final Object object, final ToStringStyle style) { in ToStringBuilder() method in ToStringBuilder 245 public ToStringBuilder(final Object object, ToStringStyle style, StringBuffer buffer) { in ToStringBuilder() method in ToStringBuilder 266 public ToStringBuilder append(final boolean value) { in append() 278 public ToStringBuilder append(final boolean[] array) { in append() 290 public ToStringBuilder append(final byte value) { in append() 302 public ToStringBuilder append(final byte[] array) { in append() 314 public ToStringBuilder append(final char value) { in append() 326 public ToStringBuilder append(final char[] array) { in append() [all …]
|
D | DiffResult.java | 182 final ToStringBuilder lhsBuilder = new ToStringBuilder(lhs, style); in toString() 183 final ToStringBuilder rhsBuilder = new ToStringBuilder(rhs, style); in toString()
|
D | ReflectionToStringBuilder.java | 101 public class ReflectionToStringBuilder extends ToStringBuilder {
|
/external/apache-commons-lang/src/site/resources/release-notes/ |
D | RELEASE-NOTES-2.0.txt | 132 14447 ToStringBuilder doesn't work well in subclasses 137 15257 Hierarchy support in ToStringBuilder.reflectionToString() 140 15986 Infinite loop in ToStringBuilder.reflectionToString for inne 141 16076 Example in Javadoc for ToStringBuilder wrong for append. 151 16676 StackOverflow due to ToStringBuilder 155 17250 [Lang] Should ToStringBuilder.reflectionToString handle arra 170 20632 Refactored reflection feature of ToStringBuilder into new Re 172 21021 [PATCH] reduce object creation in ToStringBuilder 542 org.apache.commons.lang.builder.ToStringBuilder 544 < public org.apache.commons.lang.builder.ToStringBuilder(java.lang.Object); [all …]
|
D | RELEASE-NOTES-2.5.txt | 95 * [LANG-487] - ToStringBuilder - make default style thread-safe
|
D | RELEASE-NOTES-2.3.txt | 75 * [LANG-69 ] - ToStringBuilder throws StackOverflowError when an Object cycle exists
|
D | RELEASE-NOTES-2.2.txt | 95 LANG-264 ToStringBuilder/HashCodeBuilder javadoc code examples
|
D | RELEASE-NOTES-1.0.txt | 87 > org.apache.commons.lang.builder.ToStringBuilder
|
D | RELEASE-NOTES-2.4.txt | 103 …* [LANG-372] - ToStringBuilder: MULTI_LINE_STYLE does not print anything from appendToString metho…
|
D | RELEASE-NOTES-2.1.txt | 106 19331 General case: infinite loop: ToStringBuilder.reflectionToString
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/ |
D | AnnotationUtils.java | 23 import org.apache.commons.lang3.builder.ToStringBuilder; 182 final ToStringBuilder builder = new ToStringBuilder(a, TO_STRING_STYLE); in toString()
|
D | ArrayUtils.java | 37 import org.apache.commons.lang3.builder.ToStringBuilder; 9576 return new ToStringBuilder(array, ToStringStyle.SIMPLE_STYLE).append(array).toString(); in toString()
|
/external/apache-commons-lang/ |
D | RELEASE-NOTES.txt | 164 o LANG-1543: [JSON string for maps] ToStringBuilder.reflectionToString doesnt render nested maps co… 187 o LANG-1542: ToStringBuilder.reflectionToString - Wrong JSON format when object has a List of Enum.… 596 o LANG-1325: Increase test coverage of ToStringBuilder class to 100%.
|