Class Builder<T>

  • Type Parameters:
    T -
    Direct Known Subclasses:
    ActionBuilder, EntityBuilder, FieldBuilder, LinkBuilder

    public abstract class Builder<T>
    extends Object
    Builder is used to build instances of <T> from values configured by the setters.

    Builders can be reused, clear() resets all fields to their default values.

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public T build()
                throws BuilderException
        Builds the instance T after validating the values.
        BuilderException - if something goes wrong during build
      • clear

        public abstract Builder<T> clear()
        Resets all fields to their default values.