public final class JobPriority extends javax.print.attribute.IntegerSyntax implements javax.print.attribute.PrintJobAttribute, javax.print.attribute.PrintRequestAttribute
JobPriority printing attribute specifies
the priority for scheduling a job on the print service.
A client may specify any value between 1 (lowest priority) and 100 (highest priority). A print service prints jobs with a priority value of n before those with a priority value of n-1.
IPP Compatibility: JobPriority is an IPP 1.1 attribute.
| Constructor and Description |
|---|
JobPriority(int value)
Creates a
JobPriority 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 JobPriority(int value)
JobPriority object.value - the priorityjava.lang.IllegalArgumentException - if value < 1 or value > 100public 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.AttributeJobPriority itself.public java.lang.String getName()
getName in interface javax.print.attribute.Attribute