示例#1
0
 public synchronized boolean containsPerson(Person p) {
   return mySet.contains(p);
 }
示例#2
0
 public synchronized void addPerson(Person p) {
   mySet.add(p);
 }