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