Class ExactMatcher<TOption>
- java.lang.Object
-
- com.github.rvesse.airline.prompts.matchers.DefaultMatcher<TOption>
-
- com.github.rvesse.airline.prompts.matchers.ExactMatcher<TOption>
-
- All Implemented Interfaces:
PromptOptionMatcher<TOption>
- Direct Known Subclasses:
ExactIgnoresCaseMatcher
public class ExactMatcher<TOption> extends DefaultMatcher<TOption>
-
-
Constructor Summary
Constructors Constructor Description ExactMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.collections4.Predicate<TOption>
getExactOrPartialMatcher(java.lang.String response)
Gets an exact or partial matcher-
Methods inherited from class com.github.rvesse.airline.prompts.matchers.DefaultMatcher
getExactMatcher, match
-
-
-
-
Method Detail
-
getExactOrPartialMatcher
protected org.apache.commons.collections4.Predicate<TOption> getExactOrPartialMatcher(java.lang.String response)
Description copied from class:DefaultMatcher
Gets an exact or partial matcher- Overrides:
getExactOrPartialMatcher
in classDefaultMatcher<TOption>
- Parameters:
response
- User response to match options against- Returns:
- Exact or partial matcher
-
-