public class HashPrintJobAttributeSet extends HashAttributeSet implements PrintJobAttributeSet, Serializable
HashAttributeSet类继承其实现,并强制接口PrintJobAttributeSet的语义限制 。
| Constructor and Description |
|---|
HashPrintJobAttributeSet()
构造一个新的,空的哈希打印作业属性集。
|
HashPrintJobAttributeSet(PrintJobAttribute attribute)
构造一个新的哈希打印作业属性集,最初用给定的值填充。
|
HashPrintJobAttributeSet(PrintJobAttribute[] attributes)
构造一个新的哈希打印作业属性集,最初使用给定数组中的值填充。
|
HashPrintJobAttributeSet(PrintJobAttributeSet attributes)
构造一个新的属性集,最初使用给定集合中的值进行填充,其中属性集的成员被限制到
PrintJobAttribute接口。
|
add, addAll, clear, containsKey, containsValue, equals, get, hashCode, isEmpty, remove, remove, size, toArrayclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitadd, addAllclear, containsKey, containsValue, equals, get, hashCode, isEmpty, remove, remove, size, toArraypublic HashPrintJobAttributeSet()
public HashPrintJobAttributeSet(PrintJobAttribute attribute)
attribute - 添加到集合中的属性值。
NullPointerException - (未选中的异常)如果
attribute为空,则抛出。
public HashPrintJobAttributeSet(PrintJobAttribute[] attributes)
attributes数组添加到集合中来填充新的属性集。因此,如果数组包含重复的属性值或属性类别,则稍后的数组元素可以替换较早的数组元素。
attributes - 要添加到集合的属性值数组。
如果为空,则构造一个空属性集。
NullPointerException - (未选中的异常)如果
attributes任何元素为空,则抛出。
public HashPrintJobAttributeSet(PrintJobAttributeSet attributes)
PrintJobAttribute接口的
PrintJobAttribute填充。
attributes - attributes集合的属性值集。
如果为空,则构造一个空属性集。
ClassCastException - (未经检查的异常)如果attributes的任何元素不是
attributes的实例,则
PrintJobAttribute 。
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.