public interface Paper extends FactoryProperties
Modifier and Type | Interface and Description |
---|---|
static class |
Paper.Type
Defines paper types.
|
FactoryProperties.ComparatorBuilder
Modifier and Type | Method and Description |
---|---|
RollPaper |
asRollPaper()
Returns this Paper as a RollPaper
|
SheetPaper |
asSheetPaper()
Returns this Paper as a SheetPaper
|
TractorPaper |
asTractorPaper()
Returns this Paper as a TractorPaper
|
Paper.Type |
getType()
Gets the type of paper
|
getDescription, getDisplayName, getIdentifier, newComparatorBuilder
Paper.Type getType()
SheetPaper asSheetPaper()
ClassCastException
- if the instance is not SheetPaperTractorPaper asTractorPaper()
ClassCastException
- if the instance is not TractorPaperRollPaper asRollPaper()
ClassCastException
- if the instance is not RollPaper