javax.print.attribute.standard
Class PagesPerMinute

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

public final class PagesPerMinute
extends IntegerSyntax
implements PrintServiceAttribute

The PagesPerMinute printing attribute specifies the nominal number of pages per minute which may be printed by the printer.

IPP Compatibility: PagesPerMinute is an IPP 1.1 attribute.

See Also:
Serialized Form

Constructor Summary
PagesPerMinute(int value)
          Creates a PagesPerMinute 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

PagesPerMinute

public PagesPerMinute(int value)
Creates a PagesPerMinute object.

Parameters:
value - the number of pages per minute
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 PagesPerMinute itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "pages-per-minute".