Module com.github.rvesse.airline
Class AbstractAbbreviationFinder<T>
java.lang.Object
com.github.rvesse.airline.utils.predicates.AbstractAbbreviationFinder<T>
- All Implemented Interfaces:
org.apache.commons.collections4.Predicate<T>
- Direct Known Subclasses:
AbbreviatedCommandFinder
,AbbreviatedGroupFinder
,AbbreviatedOptionFinder
public abstract class AbstractAbbreviationFinder<T>
extends Object
implements org.apache.commons.collections4.Predicate<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
private boolean
isAbbreviation
(T item) private boolean
protected abstract boolean
isExactNameMatch
(String value, T item) protected abstract boolean
isPartialNameMatch
(String value, T item)
-
Field Details
-
candidates
-
exact
-
-
Constructor Details
-
AbstractAbbreviationFinder
-
-
Method Details
-
isExactNameMatch
-
isPartialNameMatch
-
evaluate
- Specified by:
evaluate
in interfaceorg.apache.commons.collections4.Predicate<T>
-
isExact
-
isAbbreviation
-