Class 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 Contract
      java.lang.Integer getPages()
      Gets the number of pages in this contract
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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