public final class NumberOfDocuments extends javax.print.attribute.IntegerSyntax implements javax.print.attribute.PrintJobAttribute
NumberOfDocuments printing attribute specifies
the number of documents in a job.
IPP Compatibility: NumberOfDocuments is an IPP 1.1 attribute.
| Constructor and Description |
|---|
NumberOfDocuments(int value)
Creates a
NumberOfDocuments 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 NumberOfDocuments(int value)
NumberOfDocuments object.value - the number of documentsjava.lang.IllegalArgumentException - if value < 0public 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.AttributeNumberOfDocuments itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute