public final class Copies extends javax.print.attribute.IntegerSyntax implements javax.print.attribute.PrintJobAttribute, javax.print.attribute.PrintRequestAttribute
Copies printing attribute specifies the number
of copies to be printed.
Note: The effect of this attribute on jobs with multiple documents
is controlled by the job attribute
MultipleDocumentHandling.
IPP Compatibility: Copies is an IPP 1.1 attribute.
MultipleDocumentHandling,
Serialized Form| Constructor and Description |
|---|
Copies(int value)
Creates a
Copies object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the given object is equal to this object.
|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
public Copies(int value)
Copies object.value - the number of copiesjava.lang.IllegalArgumentException - if value < 1public boolean equals(java.lang.Object obj)
equals in class javax.print.attribute.IntegerSyntaxobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeCopies itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute