public final class JobStateReasons extends HashSet<JobStateReason> implements PrintJobAttribute
JobState属性的值。
实例JobStateReason不会出现在打印作业的属性直接设置。相反,一个jobstatereasons属性出现在打印作业的属性设置。的jobstatereasons属性包含零个、一个、或多个JobStateReason对象属于打印作业的状态。打印机的打印作业的JobStateReasons属性时相应的条件成为打印作业真的增加了一个JobStateReason对象,和打印机删除JobStateReason对象时再相应条件为假,无论打印作业的整体JobState也改变了。
jobstatereasons类继承实现类java.util.HashSet。不像大多数的打印属性是不可变类jobstatereasons一旦建成,设计是可变的;你可以添加JobStateReason对象的现有jobstatereasons对象并将它们再次。然而,像java.util.HashSet类,类JobStateReasons不是多线程安全的。如果一个jobstatereasons对象将被多个线程使用,确保其操作同步(例如,使用一个同步设置视图类java.util.Collections获得)。
聚丙烯的相容性:返回的字符串值的每一个人JobStateReason对象的toString()方法使IPP关键字值。返回getName()类别名称为IPP的属性名称。
| Constructor and Description |
|---|
JobStateReasons()
构造一个新的、空的作业状态原因属性;下一个哈希集具有默认的初始容量和负载因子。
|
JobStateReasons(Collection<JobStateReason> collection)
构建一个新的工作状态的原因,包含给定集合相同的
JobStateReason对象。
|
JobStateReasons(int initialCapacity)
构造一个新的、空的作业状态原因属性;基础的哈希集具有给定的初始容量和默认的负载因子。
|
JobStateReasons(int initialCapacity, float loadFactor)
构造一个新的、空的作业状态原因属性;基础的哈希集具有给定的初始容量和负载因子。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(JobStateReason o)
如果没有已存在,则将指定的元素添加到此作业状态原因属性中的。
|
类<? extends Attribute> |
getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
String |
getName()
获取此属性值的类别的名称,即一个实例。
|
clear, clone, contains, isEmpty, iterator, remove, size, spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic JobStateReasons()
public JobStateReasons(int initialCapacity)
initialCapacity初始容量。
IllegalArgumentException如果初始容量小于零。
public JobStateReasons(int initialCapacity,
float loadFactor)
initialCapacity初始容量。
loadFactor负载因子。
IllegalArgumentException如果初始容量小于零。
public JobStateReasons(Collection<JobStateReason> collection)
JobStateReason对象。底层散列集的初始容量和加载因子作为父类的构造函数指定
HashSet(Collection)。
collection采集复制。
NullPointerException -(unchecked例外)如果
collection是无效的或者
collection任何元素为null抛出。
ClassCastException -(unchecked例外)如果在
collection任何元素不是类的实例被
JobStateReason。
public boolean add(JobStateReason o)
JobStateReason。如果这个工作状态的原因已经包含指定元素,电话离开这个工作状态原因属性不变,返回
false。
add 接口
Collection<JobStateReason>
add 接口
Set<JobStateReason>
add 方法重写,继承类
HashSet<JobStateReason>
o元素被添加到这个工作状态的原因。
NullPointerException -(unchecked例外)如果指定的元素为null抛出。
ClassCastException -(unchecked例外)如果指定的元素不是类的实例被
JobStateReason。
public final 类<? extends Attribute> getCategory()
jobstatereasons类,类类jobstatereasons本身。
getCategory 接口
Attribute
java.lang.Class类实例。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.