import java.util.*; import java.rmi.*; public class PIMCollection extends ArrayList { public Collection getNotes() { return(getPIMTypes("PIMNote")); } public Collection getNotes(String owner) { return(getPIMTypes("PIMNote",owner)); } public Collection getTodos() { return(getPIMTypes("PIMTodo")); } public Collection getTodos(String owner) { return(getPIMTypes("PIMTodo",owner)); } public Collection getAppointments() { return(getPIMTypes("PIMAppointment")); } public Collection getAppointments(String owner) { return(getPIMTypes("PIMAppointment",owner)); } public Collection getContacts() { return(getPIMTypes("PIMContact")); } public Collection getContacts(String owner) { return(getPIMTypes("PIMContact", owner)); } // all public (shared) items public PIMCollection getAll() { PIMCollection p = new PIMCollection(); for (int i=0;i