org.netbeans.modules.cnd.api.model/1 1.3 1

org.netbeans.modules.cnd.api.model.util
Class WeakList<T>

java.lang.Object
  
extended by org.netbeans.modules.cnd.api.model.util.WeakList<T>
All Implemented Interfaces:
Iterable<T>

public class WeakList<T>
extends Object
implements Iterable<T>

A list that keeps weak references to its elements


Constructor Summary
WeakList()
           
 
Method Summary
 void add(T element)
          Adds a weak reference to the given element to this list
 void addAll(Iterator<T> elements)
          Adds all weak references frim the given iterator to this list
 void clear()
          Removes all elements
 Iterator<T> iterator()
          Returns an iterator of non-null references.
 void remove(T element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakList

public WeakList()
Method Detail

add

public void add(T element)
Adds a weak reference to the given element to this list


addAll

public void addAll(Iterator<T> elements)
Adds all weak references frim the given iterator to this list


remove

public void remove(T element)

clear

public void clear()
Removes all elements


iterator

public Iterator<T> iterator()
Returns an iterator of non-null references. NB: it iterates over a snapshot made at the moment of the call

Specified by:
iterator in interface Iterable<T>

org.netbeans.modules.cnd.api.model/1 1.3 1

Built on November 23 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 193 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close