@Test public void testMatches() throws Exception { Route matches1 = Route.build("/api/people/:person"); assertTrue(matches1.matches("/api/people/jeff")); }
public boolean matches(String path) { return pathPattern.matcher(path).matches(); }
Route { public boolean matches(String path) { return pathPattern.matcher(path).matches(); } }
Route { public boolean matches(String path) { return pathPattern.matcher(path).matches(); } private  Route(String path, Pattern pathPattern, List<String> keywords); }
Route { public boolean matches(String path) { return pathPattern.matcher(path).matches(); } private  Route(String path, Pattern pathPattern, List<String> keywords); static Pattern compile(String pattern, List<String> keywords); static Route build(String pattern); Pattern pathPattern(); boolean matches(String path); Map<String, String> groups(String path); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
Route { public boolean matches(String path) { return pathPattern.matcher(path).matches(); } private  Route(String path, Pattern pathPattern, List<String> keywords); static Pattern compile(String pattern, List<String> keywords); static Route build(String pattern); Pattern pathPattern(); boolean matches(String path); Map<String, String> groups(String path); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }