Package org.daisy.braille.embosser
Class Contract.Builder
java.lang.Object
org.daisy.braille.embosser.Contract.Builder
- Enclosing class:
- Contract
Provides a builder for Contract
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new Contract based on this builders current configuration.setBrailleRange
(org.daisy.braille.embosser.Contract.BrailleRange value) Sets the braille range for Contracts created using this builderSets the number of pages for Contracts created using this builder
-
Constructor Details
-
Builder
public Builder()Creates a new Builder with no specified Contract properties -
Builder
Creates a new Builder using the specification in the supplied contract.- Parameters:
contract
- the contract to use
-
-
Method Details
-
setBrailleRange
Sets the braille range for Contracts created using this builder- Parameters:
value
- the braille range- Returns:
- returns this object
-
setPages
Sets the number of pages for Contracts created using this builder- Parameters:
value
- the number of pages- Returns:
- returns this object
-
build
Builds a new Contract based on this builders current configuration.- Returns:
- returns a new Contract
-