|
1 | 1 | <!DOCTYPE HTML> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | | -<!-- Generated by javadoc (24) on Sat Oct 11 08:46:06 PDT 2025 --> |
| 4 | +<!-- Generated by javadoc (24) on Sat Oct 11 08:47:55 PDT 2025 --> |
5 | 5 | <title>Parser.OrEmpty (mug-root 9.3-SNAPSHOT API)</title> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
7 | 7 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
@@ -229,9 +229,9 @@ <h3>delimitedBy</h3> |
229 | 229 | <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Parser.html" title="class in com.google.common.labs.parse">Parser</a><<a href="https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="Parser.html#type-param-T" title="type parameter in Parser">T</a>>>.<a href="Parser.OrEmpty.html" title="class in com.google.common.labs.parse">OrEmpty</a></span> <span class="element-name">delimitedBy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> delimiter)</span></div> |
230 | 230 | <div class="block">The current optional parser repeated at least once, delimited by <code>delimiter</code>. If empty, |
231 | 231 | the result is a singleton list with the default value (e.g. from <code>orElse()</code>). For |
232 | | - example, <code>consecutive(WORD).orElse("").delimitedBy(",")</code> will <a href="#parse(java.lang.String)"><code>parse</code></a> input |
233 | | - <code>",a,"</code> as <code>List.of("", "a", "")</code>; and parse input <code>""</code> as <code> |
234 | | - List.of("")</code>. |
| 232 | + example, <code>consecutive(WORD).orElse("").delimitedBy(",")</code> will <a href="#parse(java.lang.String)"><code>parse</code></a> |
| 233 | + input <code>",a,"</code> as <code>List.of("", "a", "")</code>; and parse empty input <code>""</code> as |
| 234 | + <code>List.of("")</code>. |
235 | 235 |
|
236 | 236 | <p>Note that it's different from <a href="Parser.html#zeroOrMoreDelimitedBy(java.lang.String)"><code>Parser.zeroOrMoreDelimitedBy(java.lang.String)</code></a>, which may produce |
237 | 237 | empty list, but each element is guaranteed to be non-empty.</div> |
|
0 commit comments