public boolean exists(int id) { Person p = new Person(); p.setId(id); return storage.contains(p); }
public void add(Person person) { Person copy = new Person(person); copy.setId(nextId()); System.out.println(">>adding person: " + copy); this.storage.add(copy); }