Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active August 21, 2023 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/200a18dd99a76a95155df4cb032b1d10 to your computer and use it in GitHub Desktop.
Save mcsee/200a18dd99a76a95155df4cb032b1d10 to your computer and use it in GitHub Desktop.
final public class PaperSize { }
final public class Document { }
final public class PrintMargins { }
final public class PrintRange { }
final public class ColorConfiguration { }
final public class PrintOrientation { }
// Class definition with methods and properties omitted for simplicity
final public class PrintSetup {
public PrintSetup(PaperSize papersize,
PrintOrientation orientation,
ColorConfiguration color,
PrintRange range,
int copiesCount,
PrintMargins margins
) {}
}
final public class Printer {
void print(
Document documentToPrint,
PrintSetup setup
) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment