javax.print.attribute.standard
Class JobImpressionsCompleted

java.lang.Object
  extended by javax.print.attribute.IntegerSyntax
      extended by javax.print.attribute.standard.JobImpressionsCompleted
All Implemented Interfaces:
Serializable, Cloneable, Attribute, PrintJobAttribute

public final class JobImpressionsCompleted
extends IntegerSyntax
implements PrintJobAttribute

The JobImpressionsCompleted printing attribute reports the number of impressions already processed.

An impression is specified by the IPP specification as the image imposed onto a single media sheet. This attribute will not include a multiplication factor from the number of copies.

This attribute belongs to a group of job progress attributes which are reporting on the progress of a print job.

IPP Compatibility: JobImpressionsCompleted is an IPP 1.1 attribute.

See Also:
JobMediaSheetsCompleted, JobKOctetsProcessed, Serialized Form

Constructor Summary
JobImpressionsCompleted(int value)
          Creates a JobImpressionsCompleted object.
 
Method Summary
 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.
 
Methods inherited from class javax.print.attribute.IntegerSyntax
getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobImpressionsCompleted

public JobImpressionsCompleted(int value)
Creates a JobImpressionsCompleted object.

Parameters:
value - the number of completed impressions
Throws:
IllegalArgumentException - if value < 0
Method Detail

equals

public boolean equals(Object obj)
Tests if the given object is equal to this object.

Overrides:
equals in class IntegerSyntax
Parameters:
obj - the object to test
Returns:
true if both objects are equal, false otherwise.
See Also:
Object.hashCode()

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Specified by:
getCategory in interface Attribute
Returns:
The class JobImpressionsCompleted itself.

getName

public String getName()
Returns the name of this attribute.

Specified by:
getName in interface Attribute
Returns:
The name "job-impressions-completed".