Interface Paper

    • Method Detail

      • getType

        Paper.Type getType()
        Gets the type of paper
        Returns:
        returns the type of paper
      • asSheetPaper

        SheetPaper asSheetPaper()
        Returns this Paper as a SheetPaper
        Returns:
        returns the SheetPaper
        Throws:
        ClassCastException - if the instance is not SheetPaper
      • asTractorPaper

        TractorPaper asTractorPaper()
        Returns this Paper as a TractorPaper
        Returns:
        returns the TractorPaper
        Throws:
        ClassCastException - if the instance is not TractorPaper
      • asRollPaper

        RollPaper asRollPaper()
        Returns this Paper as a RollPaper
        Returns:
        returns the RollPaper
        Throws:
        ClassCastException - if the instance is not RollPaper