T - the concrete print settings typepublic interface Copies<T extends PrintSettings>
Implemented by concrete PrintSettings implementations that support configuring the
number of copies to print.
| Modifier and Type | Method and Description |
|---|---|
int |
copies()
Returns the number of copies to print.
|
T |
copies(int copies)
Configures the number of copies to print.
|
T copies(int copies)
copies - the copies numberjava.lang.IllegalArgumentException - if the value exceeds the maximum number of copies that the printer can makejava.lang.IllegalArgumentException - if the copies number is less than oneObjectClosedException - if the current printing operation has been completedCapabilities.maxCopies()int copies()
ObjectClosedException - if the current printing operation has been completed