Class IgnoresCaseMatcher<TOption>

java.lang.Object
com.github.rvesse.airline.prompts.matchers.DefaultMatcher<TOption>
com.github.rvesse.airline.prompts.matchers.IgnoresCaseMatcher<TOption>
Type Parameters:
TOption - Option type
All Implemented Interfaces:
PromptOptionMatcher<TOption>

public class IgnoresCaseMatcher<TOption> extends DefaultMatcher<TOption>
An option matcher that ignores case
  • Constructor Details

    • IgnoresCaseMatcher

      public IgnoresCaseMatcher()
  • Method Details

    • getExactMatcher

      protected org.apache.commons.collections4.Predicate<TOption> getExactMatcher(String response)
      Description copied from class: DefaultMatcher
      Gets an exact matcher
      Overrides:
      getExactMatcher in class DefaultMatcher<TOption>
      Parameters:
      response - User response to match options against
      Returns:
      Exact matcher
    • getExactOrPartialMatcher

      protected org.apache.commons.collections4.Predicate<TOption> getExactOrPartialMatcher(String response)
      Description copied from class: DefaultMatcher
      Gets an exact or partial matcher
      Overrides:
      getExactOrPartialMatcher in class DefaultMatcher<TOption>
      Parameters:
      response - User response to match options against
      Returns:
      Exact or partial matcher