public abstract static class RenderingHints.Key extends Object
RenderingHints类一起使用的所有键的基本类型,以控制渲染和成像管道中的各种算法选择。
这个类的实例是不可变的和唯一的,这意味着可以使用==操作符而不是更昂贵的equals()方法进行匹配测试。
| Modifier | Constructor and Description |
|---|---|
protected |
Key(int privatekey)
使用指定的私钥构建密钥。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
所有Key对象的equals方法将返回与等式运算符“==”相同的结果。
|
int |
hashCode()
所有Key对象的哈希码与System.identityHashCode()方法定义的对象的系统标识码相同。
|
protected int |
intKey()
返回该子类实例化此Key的私有整数键。
|
abstract boolean |
isCompatibleValue(Object val)
如果指定的对象是此Key的有效值,则返回true。
|
protected Key(int privatekey)
privatekey - 指定的键
public abstract boolean isCompatibleValue(Object val)
val -
Object以检验有效性
true如果val有效;
false否则。
protected final int intKey()
public final int hashCode()
hashCode在
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
public final boolean equals(Object o)
equals在类别
Object
o - 与之比较的参考对象。
true如果该对象与obj参数相同;
false否则。
Object.hashCode() , HashMap
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.