public class MatchTemplate<T> extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<MatchTemplate<?>> |
compare
A MatchTemplate comparator for use in sorting.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MatchTemplate<?> other)
Compare this MatchTemplate with another.
|
boolean |
match(Map<String,String> bindings,
String uri,
MultiMap<String,String> queryParams)
Match the given uri string.
|
static <T> MatchTemplate<T> |
prepare(String template,
T value)
Answer a MatchTemplate corresponding to the template string.
|
String |
template()
Answer the URI template string from which this MatchTemplate was
constructed.
|
String |
toString() |
T |
value()
Answer the associated value for this template.
|
public static Comparator<MatchTemplate<?>> compare
public int compareTo(MatchTemplate<?> other)
public String template()
public T value()
public boolean match(Map<String,String> bindings, String uri, MultiMap<String,String> queryParams)
queryParams
- public static <T> MatchTemplate<T> prepare(String template, T value)
Copyright © 2014. All Rights Reserved.