Class BuilderPool


  • public class BuilderPool
    extends Object
    Pools PanelBuilders. Builders are held using weak references, to avoid leaking memory.
    Author:
    michael
    • Constructor Detail

      • BuilderPool

        public BuilderPool()
    • Method Detail

      • add

        public void add​(PanelBuilder bld)
        Adds a builder to the pool.
        Parameters:
        bld - The builder to add.
      • get

        public PanelBuilder get()
        Pulls a pooled builder, or returns null if no builder is present.
        Returns:
        a builder or null.