Created
December 15, 2015 19:39
-
-
Save HDBandit/e363553e4ceef3389447 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Car> cars = filterCars(input, new CarChecker() { | |
public boolean check(Car car) { | |
return "Ferrari".equals(car.getBrand()) && "red".equals(car.getColor()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment