JavaTM 2 Platform
Standard Ed. 6

javax.print.attribute.standard
类 NumberOfInterveningJobs

java.lang.Object
  继承者 javax.print.attribute.IntegerSyntax
      继承者 javax.print.attribute.standard.NumberOfInterveningJobs
所有已实现的接口:
Serializable, Cloneable, Attribute, PrintJobAttribute

public final class NumberOfInterveningJobs
extends IntegerSyntax
implements PrintJobAttribute

NumberOfInterveningJobs 类是整数值形式的打印属性类,它指示在此作业之前的作业数,这些作业按期望完成的相对时间顺序排序(即当前安排的顺序)。

IPP Compatibility: 整数值给出了 IPP 整数值。getName() 所返回的类别名称给出了 IPP 属性名称。

另请参见:
序列化表格

构造方法摘要
NumberOfInterveningJobs(int value)
          构造具有给定整数值的新的 NumberOfInterveningJobs 属性。
 
方法摘要
 boolean equals(Object object)
          返回此 NumberOfInterveningJobs 属性是否等效于传入的对象。
 Class<? extends Attribute> getCategory()
          获取将被用作此打印属性值的“类别”的打印属性类。
 String getName()
          获取类别名称,此属性值为该类别的实例。
 
从类 javax.print.attribute.IntegerSyntax 继承的方法
getValue, hashCode, toString
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

NumberOfInterveningJobs

public NumberOfInterveningJobs(int value)
构造具有给定整数值的新的 NumberOfInterveningJobs 属性。

参数:
value - 整数值。
抛出:
IllegalArgumentException - (未检查的异常)如果 value 小于 0,则抛出该异常。
方法详细信息

equals

public boolean equals(Object object)
返回此 NumberOfInterveningJobs 属性是否等效于传入的对象。若要等效,以下所有条件都必须为 true:
  1. object 不为 null。
  2. object 为 NumberOfInterveningJobs 类的实例。
  3. 此 NumberOfInterveningJobs 属性值与 object 的值相等。

覆盖:
IntegerSyntax 中的 equals
参数:
object - 要比较的 Object。
返回:
如果 object 等效于此 NumberOfInterveningJobs 属性,则返回 true,否则返回 false。
另请参见:
Object.hashCode(), Hashtable

getCategory

public final Class<? extends Attribute> getCategory()
获取将被用作此打印属性值的“类别”的打印属性类。

对于 NumberOfInterveningJobs 类,类别为 NumberOfInterveningJobs 类本身。

指定者:
接口 Attribute 中的 getCategory
返回:
打印属性类(类别),它是 java.lang.Class 类的实例。

getName

public final String getName()
获取类别名称,此属性值为该类别的实例。

对于 NumberOfInterveningJobs 类,类别名称为 "number-of-intervening-jobs"

指定者:
接口 Attribute 中的 getName
返回:
属性类别名称。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only