java.lang.Object
javax.print.attribute.SetOfIntegerSyntax
javax.print.attribute.standard.CopiesSupported
- 所有已实现的接口:
-
Serializable,Cloneable,Attribute,SupportedValuesAttribute
类
CopiesSupported 是一个打印属性类,一个整数集,提供了 Copies 属性的支持值。它限定为单个连续的整数范围;不允许多个不重叠的范围。
IPP 兼容性: CopiesSupported 属性的规范数组形式给出了要包含在 IPP "copies-supported" 属性中的副本范围的下限和上限。查看类 SetOfIntegerSyntax 以了解规范数组形式的解释。通过 getName() 返回的类别名称给出了 IPP 属性名称。
- 参见:
-
Constructor Summary
ConstructorsConstructorDescriptionCopiesSupported(int member) 构造一个包含单个整数的新副本支持属性。CopiesSupported(int lowerBound, int upperBound) 构造一个包含单个整数范围的新副本支持属性。 -
Method Summary
Methods declared in class javax.print.attribute.SetOfIntegerSyntax
contains, contains, getMembers, hashCode, next, toString
-
Constructor Details
-
CopiesSupported
public CopiesSupported(int member) 构造一个包含单个整数的新副本支持属性。也就是说,仅支持一个Copies的值。- 参数:
-
member- 集合成员 - 抛出:
-
IllegalArgumentException- 如果member < 1
-
CopiesSupported
public CopiesSupported(int lowerBound, int upperBound) 构造一个包含单个整数范围的新副本支持属性。也就是说,仅支持该范围内的Copies值。- 参数:
-
lowerBound- 范围的下限 -
upperBound- 范围的上限 - 抛出:
-
IllegalArgumentException- 如果指定了一个null范围,或者如果指定了一个非null范围且lowerBound小于 1
-
-
Method Details
-
equals
返回此副本支持属性是否等同于传入的对象。要等同,必须满足以下所有条件:object不是null。object是类CopiesSupported的一个实例。- 此副本支持属性的成员和
object的成员相同。
- 覆盖:
-
equals在类SetOfIntegerSyntax - 参数:
-
object- 要比较的Object - 返回:
-
如果
object等同于此副本支持属性,则返回true,否则返回false - 参见:
-
getCategory
获取要用作此打印属性值的 "类别" 的打印属性类。对于类
CopiesSupported,类别是类CopiesSupported本身。- 指定者:
-
getCategory在接口Attribute - 返回:
-
打印属性类(类别),是
java.lang.Class的一个实例
-
getName
获取此属性值是其实例的类别的名称。对于类
CopiesSupported,类别名称是"copies-supported"。
-