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