public class PathMatcher<T>
extends java.lang.Object
| Constructor and Description |
|---|
PathMatcher() |
| Modifier and Type | Method and Description |
|---|---|
T |
get(java.lang.String key)
See if this object already exists in the collection, using equals().
|
java.util.Iterator<T> |
iterator()
Get an iterator over the values, in sorted order.
|
T |
match(java.lang.String path)
Find the longest match.
|
void |
put(java.lang.String key,
T value)
Add an object to the collection to be searched by a String key.
|
public void put(java.lang.String key,
T value)
key - sort keyvalue - add this object to the list to be searched.public T get(java.lang.String key)
key - find object that has this keypublic java.util.Iterator<T> iterator()
public T match(java.lang.String path)
path - find object with longest match where path.startsWith( key)