public abstract class Builder<T> extends Object implements AutoCloseable
This is a base interface for building objects in Catalyst.
Throughout Catalyst, builders are used to build a variety of objects. Builders are designed to be
pooled and reused in order to reduce GC pressure. When build() or
close() is called on a builder, the builder will be released back to the BuilderPool
that created it.
public abstract T build()
The returned object may be a new instance of the built class or a recycled instance, depending on the semantics of the builder implementation. Users should never assume that a builder allocates a new instance.
public void close()
close in interface AutoCloseableCopyright © 2013–2015. All rights reserved.