Package com.google.mu.collect
Class Selection.Parser
java.lang.Object
com.google.mu.collect.Selection.Parser
Parser for
Selection
.- Since:
- 4.7
-
Method Summary
Modifier and TypeMethodDescriptionparse
(String string, CheckedFunction<String, ? extends T, E> elementParser) Parsesstring
into aSelection
by treating the single'*'
character asSelection.all()
, and delegating toelementParser
to parse each explicit selection element.
-
Method Details
-
parse
public <T,E extends Throwable> Selection<T> parse(String string, CheckedFunction<String, ? extends T, throws EE> elementParser) Parsesstring
into aSelection
by treating the single'*'
character asSelection.all()
, and delegating toelementParser
to parse each explicit selection element.Leading and trailing whitespaces are trimmed. Empty and duplicate elements are ignored.
- Throws:
E
-
parse
Parsesstring
into aSelection
of strings by treating the single'*'
character asSelection.all()
.Leading and trailing whitespaces are trimmed. Empty and duplicate elements are ignored.
-