java.awt
Class RenderingHints.Key

java.lang.Object
  extended by java.awt.RenderingHints.Key
Enclosing class:
RenderingHints

public abstract static class RenderingHints.Key
extends Object

The base class used to represent keys.


Constructor Summary
protected RenderingHints.Key(int privateKey)
          Creates a new key.
 
Method Summary
 boolean equals(Object other)
          Checks this key for equality with an arbitrary object.
 int hashCode()
          Returns a hash code for the key.
protected  int intKey()
          Returns the private key for this instance.
abstract  boolean isCompatibleValue(Object value)
          Returns true if the specified value is compatible with this key, and false otherwise.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderingHints.Key

protected RenderingHints.Key(int privateKey)
Creates a new key.

Parameters:
privateKey - the private key.
Method Detail

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.

intKey

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

Returns:
The private key.

hashCode

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

Overrides:
hashCode in class Object
Returns:
A hash code.
See Also:
Object.equals(Object), System.identityHashCode(Object)

equals

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

Overrides:
equals in class Object
Parameters:
other - the object (null permitted)
Returns:
A boolean.
See Also:
Object.hashCode()