Class Pool<T extends PoolEntry>

java.lang.Object
com.pnfsoftware.jeb.core.units.Pool<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>

@Ser public class Pool<T extends PoolEntry> extends Object implements Iterable<T>
A collection of entries that can be used by parsers to represent pools.
  • Field Details

  • Constructor Details

    • Pool

      public Pool(String poolname)
    • Pool

      public Pool(String poolname, int initialCapacity)
  • Method Details

    • getName

      public String getName()
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • add

      public void add(T e)
    • get

      public T get(int index)
    • getAll

      public List<T> getAll()
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends PoolEntry>
    • toString

      public String toString()
      Overrides:
      toString in class Object