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

public class ValueMatcher<TOption> extends Object implements PromptOptionMatcher<TOption>
An option matcher that matches based on actual value rather than strings

This allows for matching options where there are multiple ways of writing down a value. For example if you have an option that is specified as a numeric value there could be multiple ways to specify the number e.g. 1.0, 1, 1.0e0 etc.

  • Field Details

  • Constructor Details

    • ValueMatcher

      public ValueMatcher(Class<TOption> optionType)
      Creates a new value matcher
      Parameters:
      optionType - Option class
  • Method Details