Package org.daisy.braille.embosser
Class Contract
- java.lang.Object
-
- org.daisy.braille.embosser.Contract
-
public class Contract extends java.lang.Object
Provides a usage contract that allows an implementation of EmbosserWriter to optimize or configure communication based on actual properties of the expected communication.- Author:
- Joel HÃ¥kansson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Contract.Builder
Provides a builder for Contract
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.daisy.braille.embosser.Contract.BrailleRange
getBrailleRange()
Gets the braille range in this Contractjava.lang.Integer
getPages()
Gets the number of pages in this contract
-
-
-
Method Detail
-
getBrailleRange
public org.daisy.braille.embosser.Contract.BrailleRange getBrailleRange()
Gets the braille range in this Contract- Returns:
- returns the braille range
-
getPages
public java.lang.Integer getPages()
Gets the number of pages in this contract- Returns:
- returns the number of pages, or null if not set
-
-