Skip to content

Commit

Permalink
fix: Filter extends Predicate is now working with projects in JDK7 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
surli authored and monperrus committed Jan 4, 2018
1 parent 677d100 commit cef5e07
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,9 @@ public Class<T> getType() {
public boolean matches(T element) {
return type.isAssignableFrom(element.getClass());
}

@Override
public boolean test(T element) {
return matches(element);
}
}

0 comments on commit cef5e07

Please sign in to comment.