Class AbstractElementBuilderBase<R extends ElementBuilderBase<?>>

Type Parameters:
R - the builder type returned from build methods
All Implemented Interfaces:
Direct Known Subclasses:
DomElementBuilderBase, HtmlElementBuilderBase

public abstract class AbstractElementBuilderBase<R extends ElementBuilderBase<?>> extends Object implements ElementBuilderBase<R>
Abstract base class for implementations of ElementBuilderBase.

Subclasses of AbstractElementBuilderBase act as typed wrappers around a shared implementation that handles the actual building. The wrappers merely delegate to the shared implementation, so wrapper instances can be reused, avoiding object creation. This approach is necessary so that the return value of common methods, such as, return a typed builder instead of the generic ElementBuilderBase.