org.planx.util
Class WeakCollection<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by org.planx.util.WeakCollection<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>

public class WeakCollection<E>
extends AbstractCollection<E>

Author:
Thomas Ambus

Constructor Summary
WeakCollection()
           
WeakCollection(Collection<? extends E> c)
           
 
Method Summary
 boolean add(E elm)
           
 Iterator<E> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

WeakCollection

public WeakCollection()

WeakCollection

public WeakCollection(Collection<? extends E> c)
Method Detail

add

public boolean add(E elm)
Specified by:
add in interface Collection<E>
Overrides:
add in class AbstractCollection<E>

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in class AbstractCollection<E>

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in class AbstractCollection<E>


Copyright © 2010. All Rights Reserved.