javax.print.attribute.standard
Class JobImpressionsSupported

java.lang.Object
  extended by javax.print.attribute.SetOfIntegerSyntax
      extended by javax.print.attribute.standard.JobImpressionsSupported
All Implemented Interfaces:
Serializable, Cloneable, Attribute, SupportedValuesAttribute

public final class JobImpressionsSupported
extends SetOfIntegerSyntax
implements SupportedValuesAttribute

The JobImpressionsSupported printing attribute specifies the supported range of values for the JobImpressions attribute.

IPP Compatibility: JobImpressionsSupported is an IPP 1.1 attribute.

See Also:
Serialized Form

Constructor Summary
JobImpressionsSupported(int lowerBound, int upperBound)
          Constructs a JobImpressionsSupported object with the given range of supported job impressions values.
 
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.SetOfIntegerSyntax
contains, contains, getMembers, hashCode, next, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobImpressionsSupported

public JobImpressionsSupported(int lowerBound,
                               int upperBound)
Constructs a JobImpressionsSupported object with the given range of supported job impressions values.

Parameters:
lowerBound - the lower bound value
upperBound - the upper bound value
Throws:
IllegalArgumentException - if lowerBound <= upperbound and lowerBound < 1
Method Detail

equals

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

Overrides:
equals in class SetOfIntegerSyntax
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 JobImpressionsSupported itself.

getName

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

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