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;
}