Package net.sf.laja.example.repository.behaviour.domain

Examples of net.sf.laja.example.repository.behaviour.domain.CustomerListCreator


            Customer.ssn(198002036677L).givenName("Kalle").age(15).streetName("Lillagatan 2").zipcode(22233).city("Stockholm").withSurname("Karlsson"),
            Customer.ssn(19950405067788L).givenName("Sven").age(20).streetName("Lillgatan 99").zipcode(22244).city("Gothenburg").withSurname("Karlsson")
    );

    public CustomerListCreator findBySurname(String surname) {
        CustomerListCreator result = Customer.createList();

        for (CustomerEncapsulator encapsulator : customers) {
            if (encapsulator.asCustomerMatcher().hasMatchingSurname(surname)) {
                result.add(encapsulator);
            }
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of net.sf.laja.example.repository.behaviour.domain.CustomerListCreator

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.