Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.commons.collections4.Predicate<TOption> getExactMatcher​(java.lang.String response)
      Gets an exact matcher
      protected org.apache.commons.collections4.Predicate<TOption> getExactOrPartialMatcher​(java.lang.String response)
      Gets an exact or partial matcher
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IgnoresCaseMatcher

        public IgnoresCaseMatcher()
    • Method Detail

      • getExactMatcher

        protected org.apache.commons.collections4.Predicate<TOption> getExactMatcher​(java.lang.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​(java.lang.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