Interface Paper

All Superinterfaces:
Comparable<Factory>, Factory
All Known Implementing Classes:
AbstractPaper, RollPaper, SheetPaper, TractorPaper

public interface Paper extends Factory
Provides an interface for a physical paper media.
Author:
Joel HÃ¥kansson
  • Method Details

    • 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