Skip to content

Instantly share code, notes, and snippets.

@mroger
Created June 1, 2016 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mroger/dbaa64f9a823abf8bc4d22d4fe1b4ef6 to your computer and use it in GitHub Desktop.
Save mroger/dbaa64f9a823abf8bc4d22d4fe1b4ef6 to your computer and use it in GitHub Desktop.
Proxied interface
public interface PersonMatcher extends Matcher<Person> {
PersonMatcher withName(String expected);
PersonMatcher withName(Matcher<? super String> matching);
PersonMatcher withAge(int expected);
PersonMatcher withAge(Matcher<Integer> matching);
PersonMatcher withOptions(List<String> options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment