Package com.inspiresoftware.lib.dto.geda.examples.addressbook.domain.impl

Examples of com.inspiresoftware.lib.dto.geda.examples.addressbook.domain.impl.PersonImpl


    private final Map<String, List<Person>> people = new HashMap<String, List<Person>>();
    private final Map<Person, Address> addresses = new HashMap<Person, Address>();

    public Person addPerson(final String firstName, final String lastName) {

        final Person person = new PersonImpl();
        person.setFirstName(firstName);
        person.setLastName(lastName);

        if (people.containsKey(firstName)) {
            people.get(firstName).add(person);
        } else {
            people.put(firstName, new ArrayList(Arrays.asList(person)));
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.examples.addressbook.domain.impl.PersonImpl

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.