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

      SoftObject soft = SoftObject.create(obj, queue);
      
      return collection.add(soft);
   }
public boolean add(final Object obj) {
      maintain();

      SoftObject soft = SoftObject.create(obj, queue);
      
      return collection.add(soft);
   }
Add an object to the collection.

@param obj  Object (or <i>null</i> to add to the collection.
@return     True if object was added.