Class ResourcePool<T>

  • All Implemented Interfaces:
    Iterable<T>

    public final class ResourcePool<T>
    extends Object
    implements Iterable<T>

    This implements a simple stack based resource pool. If you are out of resources new are allocated from the factory.

    Since:
    5.2
    Author:
    baldersheim
    • Method Detail

      • alloc

        public final T alloc()
      • free

        public final void free​(T e)