|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface PredictiveInputModel.MatchingStrategy<X extends Comparable<? super X>>
Strategy used for matching and mask extension.
Method Summary | |
---|---|
int |
compare(X item1,
X item2,
PredictiveInputModel<X> pim)
Compare the two items and return -1, 0, or 1 if item1 is less than, equal to, or greater than item2. |
boolean |
equivalent(X item1,
X item2,
PredictiveInputModel<X> pim)
Returns true if the two items are equivalent under this matching strategy. |
String |
force(X item,
String mask)
Force the mask to fit this entry. |
String |
getExtendedSharedMask(List<X> items,
PredictiveInputModel<X> pim)
Returns the mask extended by the shared extension. |
X |
getLongestMatch(X item,
List<X> items,
PredictiveInputModel<X> pim)
Returns the item from the list that is the longest match. |
String |
getSharedMaskExtension(List<X> items,
PredictiveInputModel<X> pim)
Returns the shared mask extension for the list of items. |
boolean |
isMatch(X item,
PredictiveInputModel<X> pim)
Returns true if the item is a match. |
boolean |
isPerfectMatch(X item,
PredictiveInputModel<X> pim)
Returns true if the item is perfect a match. |
Method Detail |
---|
boolean isMatch(X item, PredictiveInputModel<X> pim)
item
- item to checkpim
- predictive input model
boolean isPerfectMatch(X item, PredictiveInputModel<X> pim)
item
- item to checkpim
- predictive input model
boolean equivalent(X item1, X item2, PredictiveInputModel<X> pim)
item1
- first itemitem2
- second itempim
- predictive input model
int compare(X item1, X item2, PredictiveInputModel<X> pim)
item1
- first itemitem2
- second itempim
- predictive input model
X getLongestMatch(X item, List<X> items, PredictiveInputModel<X> pim)
item
- target itemitems
- list with itemspim
- predictive input model
String getSharedMaskExtension(List<X> items, PredictiveInputModel<X> pim)
items
- items for which the mask extension should be generatedpim
- predictive input model
String getExtendedSharedMask(List<X> items, PredictiveInputModel<X> pim)
items
- items for which the mask extension should be generatedpim
- predictive input model
String force(X item, String mask)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |