Class Overhead
- java.lang.Object
- 
- org.daisy.dotify.formatter.impl.search.Overhead
 
- 
 public final class Overhead extends Object Provides the overhead associated with a volume of braille. Objects are immutable.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetPostContentSize()Gets the post-content size, in sheets.intgetPreContentSize()Gets the pre-content size, in sheets.inthashCode()inttotal()Gets the total overhead, in other words the pre-content size plus the post-content size.OverheadwithPostContentSize(int s)Creates a new instance with the specified post-content size.OverheadwithPreContentSize(int s)Creates a new instance with the specified pre-content size.
 
- 
- 
- 
Method Detail- 
withPreContentSizepublic 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
 
 - 
withPostContentSizepublic 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
 
 - 
getPreContentSizepublic int getPreContentSize() Gets the pre-content size, in sheets.- Returns:
- the pre-content size
 
 - 
getPostContentSizepublic int getPostContentSize() Gets the post-content size, in sheets.- Returns:
- the post-content size
 
 - 
totalpublic int total() Gets the total overhead, in other words the pre-content size plus the post-content size.- Returns:
- the total overhead, in sheets
 
 
- 
 
-