public static final class PageAttributes.OrientationRequestedType extends Object
| Modifier and Type | Field and Description |
|---|---|
static PageAttributes.OrientationRequestedType |
LANDSCAPE
用于指定横向的OrientationRequestedType实例。
|
static PageAttributes.OrientationRequestedType |
PORTRAIT
用于指定纵向方向的OrientationRequestedType实例。
|
public static final PageAttributes.OrientationRequestedType PORTRAIT
public static final PageAttributes.OrientationRequestedType LANDSCAPE
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.