|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.print.attribute.SetOfIntegerSyntax
javax.print.attribute.standard.CopiesSupported
public final class CopiesSupported
CopiesSupported 類別是列印屬性類別,它是一個整數集,給出了支持的 Copies 屬性的值。它限制為單個連續的整數範圍,不允許存在多個非重疊範圍。
IPP Compatibility: CopiesSupported 屬性的規範陣列形式給出了要包含於 IPP "copies-supported" 屬性中的副本範圍的下邊界和上邊界。有關規範陣列形式的解釋,請參見 SetOfIntegerSyntax。getName() 所返回的類別別名稱給出了 IPP 屬性名稱。
| 建構子摘要 | |
|---|---|
CopiesSupported(int member)
建構一個新的支持副本的屬性,它包含單個整數。 |
|
CopiesSupported(int lowerBound,
int upperBound)
建構一個新的支持副本的屬性,它包含一個整數範圍。 |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object object)
返回支持副本的此屬性是否等於傳入的物件。 |
Class<? extends Attribute> |
getCategory()
獲取將被用作此列印屬性值的“類別別”的列印屬性類別。 |
String |
getName()
獲取類別別名稱,這裡此屬性值是該類別別的實例。 |
| 從類別 javax.print.attribute.SetOfIntegerSyntax 繼承的方法 |
|---|
contains, contains, getMembers, hashCode, next, toString |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public CopiesSupported(int member)
member - 集合成員。
IllegalArgumentException - (未檢查的異常)如果 member 小於 1,則拋出此異常。
public CopiesSupported(int lowerBound,
int upperBound)
lowerBound - 範圍的下邊界。upperBound - 範圍的上邊界。
IllegalArgumentException - (未檢查的異常)如果指定了 null 範圍,或指定了 lowerBound 小於 1 的非 null 範圍,則拋出此異常。| 方法詳細資訊 |
|---|
public boolean equals(Object object)
object 不為 null。
object 為 CopiesSupported 類別的實例。
object 的成員不相同。
SetOfIntegerSyntax 中的 equalsobject - 要比較的 Object。
object 等於此支持副本的屬性,則返回 true,否則返回 false。Object.hashCode(),
Hashtablepublic final Class<? extends Attribute> getCategory()
對於 CopiesSupported 類別,類別別為 CopiesSupported 類別本身。
Attribute 中的 getCategoryjava.lang.Class 類別的實例。public final String getName()
對於 CopiesSupported 類別,類別別名稱為 "copies-supported"。
Attribute 中的 getName
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。