Package org.daisy.braille.embosser
Class Contract.Builder
- java.lang.Object
-
- org.daisy.braille.embosser.Contract.Builder
-
- Enclosing class:
- Contract
public static class Contract.Builder extends java.lang.Object
Provides a builder for 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 builderContract.Builder
setPages(java.lang.Integer value)
Sets the number of pages for Contracts created using this builder
-
-
-
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
-
-