Class MatcherUtils
- java.lang.Object
-
- com.github.rvesse.airline.prompts.matchers.MatcherUtils
-
public class MatcherUtils extends Object
Option matcher utility functions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatcherUtils.Exact<TOption>static classMatcherUtils.ExactIgnoresCase<TOption>static classMatcherUtils.ExactOrStartsWith<TOption>static classMatcherUtils.ExactOrStartsWithIgnoresCase<TOption>
-
Constructor Summary
Constructors Constructor Description MatcherUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PromptExceptionambiguousResponse(String response)Provides an error indicating that the response was ambiguous i.e.static PromptExceptioninvalidResponse(String response)Provides an error indicating that the response was invalid
-
-
-
Method Detail
-
ambiguousResponse
public static PromptException ambiguousResponse(String response)
Provides an error indicating that the response was ambiguous i.e. did not identify a single option- Parameters:
response- Response- Returns:
- Prompt error
-
invalidResponse
public static PromptException invalidResponse(String response)
Provides an error indicating that the response was invalid- Parameters:
response- Response- Returns:
- Prompt error
-
-