new Predicate <Student> () {
  public boolean match(Student student){
    return student.getAge() < 20
      && student.getName().contains("f");
  }
}

Example 8: Adding the Java extent type.

Back to Article