Class Contract.Builder

  • Enclosing class:
    Contract

    public static class Contract.Builder
    extends java.lang.Object
    Provides a builder for Contract
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()
      Creates a new Builder with no specified Contract properties
      Builder​(Contract contract)
      Creates a new Builder using the specification in the supplied contract.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Contract build()
      Builds a new Contract based on this builders current configuration.
      Contract.Builder setBrailleRange​(org.daisy.braille.embosser.Contract.BrailleRange value)
      Sets the braille range for Contracts created using this builder
      Contract.Builder setPages​(java.lang.Integer value)
      Sets the number of pages for Contracts created using this builder
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • 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​(java.lang.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