Package com.spotify.apollo.route
Class Rule<T>
- java.lang.Object
-
- com.spotify.apollo.route.Rule<T>
-
- Type Parameters:
T
- target type of the rule
public class Rule<T> extends Object
Simple holder for a rule.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Rule<T>
fromUri(String uri, String methods, T target)
Create a new rule.static <T> Rule<T>
fromUri(String uri, List<String> methods, T target)
Create a new rule.int
getExtractionCount()
List<String>
getMethods()
String
getPath()
T
getTarget()
-