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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getPostContentSize()
Gets the post-content size, in sheets.int
getPreContentSize()
Gets the pre-content size, in sheets.int
hashCode()
int
total()
Gets the total overhead, in other words the pre-content size plus the post-content size.Overhead
withPostContentSize(int s)
Creates a new instance with the specified post-content size.Overhead
withPreContentSize(int s)
Creates a new instance with the specified pre-content size.
-
-
-
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
-
-