| |
|
| java.lang.Object org.getahead.dwrdemo.people.People
People | public class People (Code) | | A container for a set of people
author: Joe Walker [joe at getahead dot ltd dot uk] |
Constructor Summary | |
public | People() |
People | public People()(Code) | | Pre-populate with random people
|
debug | protected void debug()(Code) | | List the current people so we know what is going on
|
deletePerson | public void deletePerson(Person person)(Code) | | Delete a person from the set of people
Parameters: person - The person to delete |
getAllPeople | public List<Person> getAllPeople()(Code) | | Accessor for the current list of people
the current list of people |
getMatchingPeople | public List<Person> getMatchingPeople(String filter)(Code) | | Accessor for a subset of the current list of people
the current list of people |
getNextId | public static synchronized int getNextId()(Code) | | Get the next unique ID in a thread safe way
a unique id |
getRandomPerson | public static Person getRandomPerson()(Code) | | Create a random person
a random person |
init | public void init(int count)(Code) | | |
setPerson | public void setPerson(Person person)(Code) | | Insert a person into the set of people
Parameters: person - The person to add or update |
|
|
|