Package com.phanindra.domain

Examples of com.phanindra.domain.Person


import com.google.common.collect.ImmutableList;
import com.phanindra.domain.Person;

public class Lambda {
  public static void main(String args[]) {
    List<Person> people = ImmutableList.of(new Person().setName("Phanindra"), new Person().setName("Padmashree"));
    Stream<Person> filteredPeopleStrem = people.stream().filter(p -> p.getName().startsWith("P"));
    System.out.println(filteredPeopleStrem.count());
  }
View Full Code Here


    assertEquals(2, PEOPLE.stream().filter(marriedPredicateUsingLambda())
        .count());
  }

  private static Person person(String name, Status status) {
    return new Person().setName(name).setStatus(status);
  }
View Full Code Here

TOP

Related Classes of com.phanindra.domain.Person

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.