/** * Add the given object to the Set if it is not equal (equals()) to * an element already in the set. */ public boolean add(T o) { if (o != null && !this.contains(o)) { return super.add(o); } return false; }
/** * Add the given object to the Set if it is not equal (equals()) to * an element already in the set. */ public boolean add(T o) { if (o != null && !this.contains(o)) { return super.add(o); } return false; }