Examples of WeakReference


Examples of java.lang.ref.WeakReference

   * duplicate elements.
   *
   * @see java.util.Set#add
   */
  public boolean add(Object o) {
    WeakReference wr = new WeakReference(o);
    return realSet.add(wr);
  }
View Full Code Here

Examples of java.lang.ref.WeakReference

   *       is not supported by the underlying set.
   *
   * @see java.util.Set#remove(java.lang.Object)
   */
  public boolean remove(Object o) {
    WeakReference wr = new WeakReference(o);
    return realSet.remove(wr);
  }
View Full Code Here

Examples of java.lang.ref.WeakReference

  private static final class SweepTask extends TimerTask {

    private final WeakReference poolRef;

    private SweepTask(Pool pool) {
      this.poolRef = new WeakReference(pool);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.