Class InternalContract.Builder

  • Enclosing class:
    InternalContract

    public static class InternalContract.Builder
    extends Object
    Provides a builder for Contract.
    • Constructor Detail

      • Builder

        public Builder()
        Creates a new Builder with no specified Contract properties.
      • Builder

        public Builder​(InternalContract contract)
        Creates a new Builder using the specification in the supplied contract.
        Parameters:
        contract - the contract to use
    • Method Detail

      • setPages

        public InternalContract.Builder setPages​(Integer value)
        Sets the number of pages for Contracts created using this builder.
        Parameters:
        value - the number of pages
        Returns:
        returns this object
      • addRowGap

        public InternalContract.Builder addRowGap​(Integer value)
        Adds a row gap value to the builder.
        Parameters:
        value - the value
        Returns:
        returns the value
      • build

        public InternalContract build()
        Builds a new Contract based on this builders current configuration.
        Returns:
        returns a new Contract