- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for splitToStream (0.09 sec)
-
guava/src/com/google/common/base/Splitter.java
* Iterator}, which may be lazily evaluated. If you want an eagerly computed {@link List}, use * {@link #splitToList(CharSequence)}. Java 8+ users may prefer {@link #splitToStream} instead. * * @param sequence the sequence of characters to split * @return an iteration over the segments split from the parameter */ public Iterable<String> split(final CharSequence sequence) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 21:14:05 UTC 2024 - 24.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SplitterTest.java
assertThat(letters).containsExactly("a", "b", "c").inOrder(); } public void testCharacterSimpleSplitToStream() { String simple = "a,b,c"; List<String> letters = COMMA_SPLITTER.splitToStream(simple).collect(toImmutableList()); assertThat(letters).containsExactly("a", "b", "c").inOrder(); } public void testToString() { assertEquals("[]", COMMA_SPLITTER.split("").toString());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 29.6K bytes - Viewed (0)