Class WeakPseudoList<T>

java.lang.Object
com.pnfsoftware.jeb.util.collect.WeakPseudoList<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>

public class WeakPseudoList<T> extends Object implements Iterable<T>
A list of weak references. Holding objects in this list will not prevent them from being GC'ed. This interface does not not abide to the usual Java List interface, hence the "pseudo".
  • Constructor Details

    • WeakPseudoList

      public WeakPseudoList()
    • WeakPseudoList

      public WeakPseudoList(int initialCapacity)
    • WeakPseudoList

      public WeakPseudoList(Iterable<T> l)
  • Method Details

    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clear

      public void clear()
    • get

      public T get(int index)
    • add

      public boolean add(T e)
    • add

      public void add(int index, T e)
    • addAll

      public void addAll(Iterable<T> l)
    • set

      public T set(int index, T e)
    • remove

      public T remove(int index)