javax.print.attribute.standard
public final class Copies extends IntegerSyntax implements PrintJobAttribute, 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 FormConstructor and Description |
---|
Copies(int value)
Creates a
Copies object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests if the given object is equal to this object.
|
Class<? extends Attribute> |
getCategory()
Returns category of this class.
|
String |
getName()
Returns the name of this attribute.
|
getValue, hashCode, toString
public Copies(int value)
Copies
object.value
- the number of copiesIllegalArgumentException
- if value < 1public boolean equals(Object obj)
equals
in class IntegerSyntax
obj
- the object to testtrue
if both objects are equal,
false
otherwise.Object.hashCode()
public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
Copies
itself.