Class Overhead


  • public final class Overhead
    extends Object
    Provides the overhead associated with a volume of braille. Objects are immutable.
    • Method Detail

      • withPreContentSize

        public Overhead withPreContentSize​(int s)
        Creates a new instance with the specified pre-content size. The post-content size is unchanged.
        Parameters:
        s - the pre-content size, in sheets
        Returns:
        a new instance
      • withPostContentSize

        public Overhead withPostContentSize​(int s)
        Creates a new instance with the specified post-content size. The pre-content size is unchanged.
        Parameters:
        s - the post-content size, in sheets
        Returns:
        a new instance
      • getPreContentSize

        public int getPreContentSize()
        Gets the pre-content size, in sheets.
        Returns:
        the pre-content size
      • getPostContentSize

        public int getPostContentSize()
        Gets the post-content size, in sheets.
        Returns:
        the post-content size
      • total

        public int total()
        Gets the total overhead, in other words the pre-content size plus the post-content size.
        Returns:
        the total overhead, in sheets
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object