java.awt

Class RenderingHints.Key

public abstract static class RenderingHints.Key extends Object

The base class used to represent keys.
Constructor Summary
protected Key(int privateKey)
Creates a new key.
Method Summary
booleanequals(Object other)
Checks this key for equality with an arbitrary object.
inthashCode()
Returns a hash code for the key.
protected intintKey()
Returns the private key for this instance.
abstract booleanisCompatibleValue(Object value)
Returns true if the specified value is compatible with this key, and false otherwise.

Constructor Detail

Key

protected Key(int privateKey)
Creates a new key.

Parameters: privateKey the private key.

Method Detail

equals

public final boolean equals(Object other)
Checks this key for equality with an arbitrary object.

Parameters: other the object (null permitted)

Returns: A boolean.

hashCode

public final int hashCode()
Returns a hash code for the key.

Returns: A hash code.

intKey

protected final int intKey()
Returns the private key for this instance.

Returns: The private key.

isCompatibleValue

public abstract boolean isCompatibleValue(Object value)
Returns true if the specified value is compatible with this key, and false otherwise.

Parameters: value the value (null permitted).

Returns: A boolean.