public static final class JobAttributes.DefaultSelectionType extends Object
| Modifier and Type | Field and Description |
|---|---|
static JobAttributes.DefaultSelectionType |
ALL
要用于指定作业的所有页面的
DefaultSelectionType实例。
|
static JobAttributes.DefaultSelectionType |
RANGE
用于指定应打印作业范围的
DefaultSelectionType实例。
|
static JobAttributes.DefaultSelectionType |
SELECTION
用于指定应打印当前选择的
DefaultSelectionType实例。
|
public static final JobAttributes.DefaultSelectionType ALL
DefaultSelectionType实例。
public static final JobAttributes.DefaultSelectionType RANGE
DefaultSelectionType实例用于指定应打印作业范围的页面。
public static final JobAttributes.DefaultSelectionType SELECTION
DefaultSelectionType实例。
public int hashCode()
Object复制
HashMap提供的。
hashCode的总合同是:
hashCode方法必须始终返回相同的整数,前提是修改了对象中equals比较中的信息。 该整数不需要从一个应用程序的执行到相同应用程序的另一个执行保持一致。 equals(Object)方法两个对象相等,则在两个对象中的每个对象上调用hashCode方法必须产生相同的整数结果。 Object.equals(java.lang.Object)方法不相等,那么在两个对象中的每个对象上调用hashCode方法必须产生不同的整数结果。 但是,程序员应该意识到,为不等对象生成不同的整数结果可能会提高哈希表的性能。 尽可能合理实用,由类Object定义的hashCode方法确实为不同对象返回不同的整数。 (这通常通过将对象的内部地址转换为整数来实现,但Java的编程语言不需要此实现技术。)
hashCode在
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
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.