Class WeakSet<T>

  • All Implemented Interfaces:
    Iterable<T>, Collection<T>, Set<T>


    public class WeakSet<T>
    extends Object
    implements Set<T>
    A Set that only maintains weak references to all its members.
    • Constructor Detail

      • WeakSet

        public WeakSet()
    • Method Detail

      • add

        public boolean add(T e)
      • addAll

        public boolean addAll(Collection<? extends T> c)
      • clear

        public void clear()
      • contains

        public boolean contains(Object o)
      • containsAll

        public boolean containsAll(Collection<?> c)
      • isEmpty

        public boolean isEmpty()
      • remove

        public boolean remove(Object o)
      • removeAll

        public boolean removeAll(Collection<?> c)
      • retainAll

        public boolean retainAll(Collection<?> c)
      • size

        public int size()
      • toArray

        public Object[] toArray()
      • toArray

        public <K> K[] toArray(K[] a)