Package io.codeworth.panelmatic
Class BuilderPool
- java.lang.Object
-
- io.codeworth.panelmatic.BuilderPool
-
public class BuilderPool extends Object
PoolsPanelBuilders. Builders are held using weak references, to avoid leaking memory.- Author:
- michael
-
-
Constructor Summary
Constructors Constructor Description BuilderPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PanelBuilder bld)Adds a builder to the pool.PanelBuilderget()Pulls a pooled builder, or returnsnullif no builder is present.
-
-
-
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 returnsnullif no builder is present.- Returns:
- a builder or
null.
-
-