/libcore/ojluni/src/test/java/util/StringJoiner/ |
D | StringJoinerTest.java | 52 StringJoiner sj = new StringJoiner(DASH, "{", "}"); in addAddAll() local 53 sj.add(ONE); in addAddAll() 58 nextOne.stream().forEachOrdered(sj::add); in addAddAll() 61 assertEquals(sj.toString(), expected); in addAddAll() 67 StringJoiner sj = new StringJoiner(DASH, "{", "}"); in addAlladd() local 72 firstOne.stream().forEachOrdered(sj::add); in addAlladd() 74 sj.add(THREE); in addAlladd() 77 assertEquals(sj.toString(), expected); in addAlladd() 82 StringJoiner sj = new StringJoiner(DASH, "{", "}"); in addAlladdAll() local 87 firstOne.stream().forEachOrdered(sj::add); in addAlladdAll() [all …]
|
D | MergeTest.java | 73 StringJoiner sj = new StringJoiner(",", "{", "}"); in testNull() local 74 sj.merge(null); in testNull() 79 StringJoiner sj = new StringJoiner(",", fixes.pre0, fixes.suf0); in testSimple() 81 Stream.of("a", "b", "c").forEachOrdered(sj::add); in testSimple() 84 sj.merge(other); in testSimple() 85 assertEquals(sj.toString(), fixes.pre0 + "a,b,c,d,e,f" + fixes.suf0); in testSimple() 91 StringJoiner sj = new StringJoiner(",", fixes.pre0, fixes.suf0); in testEmptyOther() 93 Stream.of("a", "b", "c").forEachOrdered(sj::add); in testEmptyOther() 95 sj.merge(other); in testEmptyOther() 96 assertEquals(sj.toString(), fixes.pre0 + "a,b,c" + fixes.suf0); in testEmptyOther() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | StringJoinerTest.java | 46 StringJoiner sj = new StringJoiner(",", "[", "]"); in testAddString() local 49 sj.add(WEEKDAYS[i]); in testAddString() 53 assertEquals(expectedLength, sj.length()); in testAddString() 55 assertEquals(EXPECTED, sj.toString()); in testAddString() 59 StringJoiner sj = new StringJoiner(",", "[", "]"); in testAddStringBuilder() local 62 sj.add(new StringBuilder(WEEKDAYS[i])); in testAddStringBuilder() 66 assertEquals(expectedLength, sj.length()); in testAddStringBuilder() 68 assertEquals(EXPECTED, sj.toString()); in testAddStringBuilder() 72 StringJoiner sj = new StringJoiner(",", "[", "]"); in testAddNone() local 73 assertEquals("[]", sj.toString()); in testAddNone() [all …]
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Modifier.java | 245 StringJoiner sj = new StringJoiner(" "); in toString() local 247 if ((mod & PUBLIC) != 0) sj.add("public"); in toString() 248 if ((mod & PROTECTED) != 0) sj.add("protected"); in toString() 249 if ((mod & PRIVATE) != 0) sj.add("private"); in toString() 252 if ((mod & ABSTRACT) != 0) sj.add("abstract"); in toString() 253 if ((mod & STATIC) != 0) sj.add("static"); in toString() 254 if ((mod & FINAL) != 0) sj.add("final"); in toString() 255 if ((mod & TRANSIENT) != 0) sj.add("transient"); in toString() 256 if ((mod & VOLATILE) != 0) sj.add("volatile"); in toString() 257 if ((mod & SYNCHRONIZED) != 0) sj.add("synchronized"); in toString() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | UnicodeLocaleExtension.java | 74 StringJoiner sj = new StringJoiner(LanguageTag.SEP); in UnicodeLocaleExtension() local 76 sj.add(attribute); in UnicodeLocaleExtension() 82 sj.add(key); in UnicodeLocaleExtension() 84 sj.add(value); in UnicodeLocaleExtension() 87 setValue(sj.toString()); in UnicodeLocaleExtension()
|
D | BaseLocale.java | 248 StringJoiner sj = new StringJoiner(", "); in toString() local 250 sj.add("language=" + language); in toString() 253 sj.add("script=" + script); in toString() 256 sj.add("region=" + region); in toString() 259 sj.add("variant=" + variant); in toString() 261 return sj.toString(); in toString()
|
D | LanguageTag.java | 477 StringJoiner sj = new StringJoiner(SEP); in parseLocale() local 484 sj.add(prvv); in parseLocale() 487 if (sj.length() > 0) { in parseLocale() 488 privuseVar = sj.toString(); in parseLocale()
|
/libcore/ojluni/src/main/java/java/text/ |
D | CalendarBuilder.java | 150 StringJoiner sj = new StringJoiner(",", "CalendarBuilder:[", "]"); in toString() local 153 sj.add(i + "=" + field[i] + ":" + field[MAX_FIELD + i]); in toString() 156 return sj.toString(); in toString()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | SortingNearlySortedPrimitive.java | 105 StringJoiner sj = new StringJoiner(",", "[", "]"); in arrayToString() local 107 sj.add(Integer.toString(i)); in arrayToString() 109 sj.add("..."); in arrayToString() 111 sj.add(Integer.toString(i)); in arrayToString() 113 return sj.toString(); in arrayToString()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LambdaTestHelpers.java | 467 StringJoiner sj = new StringJoiner(", ", "StreamOpFlag[", "]"); 468 if (StreamOpFlag.DISTINCT.isKnown(flags)) sj.add("IS_DISTINCT"); 469 if (StreamOpFlag.ORDERED.isKnown(flags)) sj.add("IS_ORDERED"); 470 if (StreamOpFlag.SIZED.isKnown(flags)) sj.add("IS_SIZED"); 471 if (StreamOpFlag.SORTED.isKnown(flags)) sj.add("IS_SORTED"); 472 if (StreamOpFlag.SHORT_CIRCUIT.isKnown(flags)) sj.add("IS_SHORT_CIRCUIT"); 473 return sj.toString();
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LambdaTestHelpers.java | 454 StringJoiner sj = new StringJoiner(", ", "StreamOpFlag[", "]"); 455 if (StreamOpFlag.DISTINCT.isKnown(flags)) sj.add("IS_DISTINCT"); 456 if (StreamOpFlag.ORDERED.isKnown(flags)) sj.add("IS_ORDERED"); 457 if (StreamOpFlag.SIZED.isKnown(flags)) sj.add("IS_SIZED"); 458 if (StreamOpFlag.SORTED.isKnown(flags)) sj.add("IS_SORTED"); 459 if (StreamOpFlag.SHORT_CIRCUIT.isKnown(flags)) sj.add("IS_SHORT_CIRCUIT"); 460 return sj.toString();
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | RDN.java | 455 StringJoiner sj = new StringJoiner("+"); in toRFC2253StringInternal() local 457 sj.add(canonical ? ava.toRFC2253CanonicalString() in toRFC2253StringInternal() 460 return sj.toString(); in toRFC2253StringInternal()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 369 (sj, cs) -> sj.add(cs), 378 (sj, cs) -> sj.add(cs),
|
D | CollectorsTest.java | 448 (sj, cs) -> sj.add(cs), 457 (sj, cs) -> sj.add(cs),
|
/libcore/ojluni/src/test/java/util/stream/Collectors/ |
D | CollectorsTest.java | 430 (sj, cs) -> sj.add(cs), 439 (sj, cs) -> sj.add(cs),
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 447 StringJoiner sj = new StringJoiner(",", "<", ">"); in toGenericString() local 449 sj.add(typeparm.getTypeName()); in toGenericString() 451 sb.append(sj.toString()); in toGenericString()
|