src/main/java/org/jboss/util/collection/WeakSet.java
public boolean add(final Object obj) {
      maintain();

      return set.add(WeakObject.create(obj, queue));
   }
public boolean add(final Object obj) {
      maintain();

      return set.add(WeakObject.create(obj, queue));
   }
public boolean add ( final Object obj ) { maintain ( ) ; return set . add ( WeakObject . create ( obj , queue ) ) ; }
Add an element to the set.

@param obj  Element to add to the set.
@return     True if the element was added.
Add an element to the set .