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