Class Contract.Builder

java.lang.Object
org.daisy.braille.embosser.Contract.Builder
Enclosing class:
Contract

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

    • Builder

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

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

    • setBrailleRange

      public Contract.Builder setBrailleRange(org.daisy.braille.embosser.Contract.BrailleRange value)
      Sets the braille range for Contracts created using this builder
      Parameters:
      value - the braille range
      Returns:
      returns this object
    • setPages

      public Contract.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
    • build

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