public class NameMatcher extends Object
| Constructor and Description |
|---|
NameMatcher() |
| Modifier and Type | Method and Description |
|---|---|
String |
find(String pattern,
Collection<String> items)
Locates the best match for the given pattern in the given set of candidate items.
|
<T> T |
find(String pattern,
Map<String,? extends T> items)
Locates the best match for the given pattern in the given set of candidate items.
|
String |
formatErrorMessage(String singularItemDescription,
Object container) |
Set<String> |
getCandidates()
Returns the potential matches, if any.
|
Set<String> |
getMatches()
Returns all matches, when there were more than 1.
|
public <T> T find(String pattern, Map<String,? extends T> items)
public String find(String pattern, Collection<String> items)
public Set<String> getMatches()
public Set<String> getCandidates()
Copyright © 2013. All rights reserved