Skip to content

Commit 2813a24

Browse files
Generate Javadoc and JDiff for Guava 999.0.0-HEAD-jre-SNAPSHOT
1 parent 4f4e542 commit 2813a24

4 files changed

Lines changed: 40 additions & 4 deletions

File tree

releases/snapshot-android/api/diffs/snapshot-android.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5717,6 +5717,8 @@
57175717
iterable, but when using this option, it can (if the input sequence consists of nothing but
57185718
separators).
57195719

5720+
<p>If a limit is also specified, see {@link #limit} for how the two options interact.
5721+
57205722
@return a splitter with the desired configuration]]>
57215723
</doc>
57225724
</method>
@@ -5737,6 +5739,13 @@
57375739
trimmed, including the last. Hence {@code Splitter.on(',').limit(3).trimResults().split(" a , b
57385740
, c , d ")} results in {@code ["a", "b", "c , d"]}.
57395741

5742+
<p>Note that when empty strings are omitted, they do not count even in determining where the
5743+
final element begins. The final element starts with the first piece that is not omitted, so
5744+
separators that delimit omitted empty strings do not appear in it, even though later separators
5745+
do. For example, {@code Splitter.on(',').limit(2).omitEmptyStrings().split("a,,b,c")} returns
5746+
an iterable containing {@code ["a", "b,c"]}, not {@code ["a", ",b,c"]}: the second comma
5747+
delimits an empty string, so it is not part of the final element.
5748+
57405749
@param maxItems the maximum number of items returned
57415750
@return a splitter with the desired configuration
57425751
@since 9.0]]>

releases/snapshot-android/api/docs/com/google/common/base/Splitter.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ <h3>omitEmptyStrings</h3>
449449

450450
<p>Note that it is ordinarily not possible for <a href="#split(java.lang.CharSequence)"><code>split(CharSequence)</code></a> to return an empty
451451
iterable, but when using this option, it can (if the input sequence consists of nothing but
452-
separators).</div>
452+
separators).
453+
454+
<p>If a limit is also specified, see <code>limit</code> for how the two options interact.</div>
453455
<dl class="notes">
454456
<dt>Returns:</dt>
455457
<dd>a splitter with the desired configuration</dd>
@@ -471,7 +473,14 @@ <h3>limit</h3>
471473
count. Hence, <code>Splitter.on(',').limit(3).omitEmptyStrings().split("a,,,b,,,c,d")</code> returns
472474
an iterable containing <code>["a", "b", "c,d"]</code>. When trim is requested, all entries are
473475
trimmed, including the last. Hence <code>Splitter.on(',').limit(3).trimResults().split(" a , b
474-
, c , d ")</code> results in <code>["a", "b", "c , d"]</code>.</div>
476+
, c , d ")</code> results in <code>["a", "b", "c , d"]</code>.
477+
478+
<p>Note that when empty strings are omitted, they do not count even in determining where the
479+
final element begins. The final element starts with the first piece that is not omitted, so
480+
separators that delimit omitted empty strings do not appear in it, even though later separators
481+
do. For example, <code>Splitter.on(',').limit(2).omitEmptyStrings().split("a,,b,c")</code> returns
482+
an iterable containing <code>["a", "b,c"]</code>, not <code>["a", ",b,c"]</code>: the second comma
483+
delimits an empty string, so it is not part of the final element.</div>
475484
<dl class="notes">
476485
<dt>Parameters:</dt>
477486
<dd><code>maxItems</code> - the maximum number of items returned</dd>

releases/snapshot-jre/api/diffs/snapshot-jre.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5730,6 +5730,8 @@
57305730
iterable, but when using this option, it can (if the input sequence consists of nothing but
57315731
separators).
57325732

5733+
<p>If a limit is also specified, see {@link #limit} for how the two options interact.
5734+
57335735
@return a splitter with the desired configuration]]>
57345736
</doc>
57355737
</method>
@@ -5750,6 +5752,13 @@
57505752
trimmed, including the last. Hence {@code Splitter.on(',').limit(3).trimResults().split(" a , b
57515753
, c , d ")} results in {@code ["a", "b", "c , d"]}.
57525754

5755+
<p>Note that when empty strings are omitted, they do not count even in determining where the
5756+
final element begins. The final element starts with the first piece that is not omitted, so
5757+
separators that delimit omitted empty strings do not appear in it, even though later separators
5758+
do. For example, {@code Splitter.on(',').limit(2).omitEmptyStrings().split("a,,b,c")} returns
5759+
an iterable containing {@code ["a", "b,c"]}, not {@code ["a", ",b,c"]}: the second comma
5760+
delimits an empty string, so it is not part of the final element.
5761+
57535762
@param maxItems the maximum number of items returned
57545763
@return a splitter with the desired configuration
57555764
@since 9.0]]>

releases/snapshot-jre/api/docs/com/google/common/base/Splitter.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ <h3>omitEmptyStrings</h3>
449449

450450
<p>Note that it is ordinarily not possible for <a href="#split(java.lang.CharSequence)"><code>split(CharSequence)</code></a> to return an empty
451451
iterable, but when using this option, it can (if the input sequence consists of nothing but
452-
separators).</div>
452+
separators).
453+
454+
<p>If a limit is also specified, see <code>limit</code> for how the two options interact.</div>
453455
<dl class="notes">
454456
<dt>Returns:</dt>
455457
<dd>a splitter with the desired configuration</dd>
@@ -471,7 +473,14 @@ <h3>limit</h3>
471473
count. Hence, <code>Splitter.on(',').limit(3).omitEmptyStrings().split("a,,,b,,,c,d")</code> returns
472474
an iterable containing <code>["a", "b", "c,d"]</code>. When trim is requested, all entries are
473475
trimmed, including the last. Hence <code>Splitter.on(',').limit(3).trimResults().split(" a , b
474-
, c , d ")</code> results in <code>["a", "b", "c , d"]</code>.</div>
476+
, c , d ")</code> results in <code>["a", "b", "c , d"]</code>.
477+
478+
<p>Note that when empty strings are omitted, they do not count even in determining where the
479+
final element begins. The final element starts with the first piece that is not omitted, so
480+
separators that delimit omitted empty strings do not appear in it, even though later separators
481+
do. For example, <code>Splitter.on(',').limit(2).omitEmptyStrings().split("a,,b,c")</code> returns
482+
an iterable containing <code>["a", "b,c"]</code>, not <code>["a", ",b,c"]</code>: the second comma
483+
delimits an empty string, so it is not part of the final element.</div>
475484
<dl class="notes">
476485
<dt>Parameters:</dt>
477486
<dd><code>maxItems</code> - the maximum number of items returned</dd>

0 commit comments

Comments
 (0)