public static class

SunHints.Value

extends Object
java.lang.Object
   ↳ sun.awt.SunHints.Value

Class Overview

Defines the type of all "enumerative" values used to control various aspects of the rendering and imaging pipelines. Instances of this class are immutable and unique which means that tests for matches can be made using the == operator instead of the more expensive equals() method.

Summary

Public Constructors
SunHints.Value(SunHints.Key key, int index, String description)
Construct a value using the indicated private index.
Public Methods
final boolean equals(Object o)
The equals method for all SunHints.Value objects will return the same result as the equality operator '=='.
static SunHints.Value get(int keyindex, int valueindex)
final int getIndex()
Returns the numeric index associated with this Key.
final int hashCode()
The hash code for all SunHints.Value objects will be the same as the system identity code of the object as defined by the System.identityHashCode() method.
final boolean isCompatibleKey(SunHints.Key k)
Returns true if the specified object is a valid Key for this Value.
final String toString()
Returns a string representation of this Value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SunHints.Value (SunHints.Key key, int index, String description)

Construct a value using the indicated private index. Each subclass of Value maintains its own unique domain of integer indices. Enforcing the uniqueness of the integer indices is left to the subclass.

Public Methods

public final boolean equals (Object o)

The equals method for all SunHints.Value objects will return the same result as the equality operator '=='.

Parameters
o the reference object with which to compare.
Returns
  • true if this object is the same as the obj argument; false otherwise.

public static SunHints.Value get (int keyindex, int valueindex)

public final int getIndex ()

Returns the numeric index associated with this Key. This is useful for use in switch statements and quick lookups of the setting of a particular key.

public final int hashCode ()

The hash code for all SunHints.Value objects will be the same as the system identity code of the object as defined by the System.identityHashCode() method.

Returns
  • a hash code value for this object.

public final boolean isCompatibleKey (SunHints.Key k)

Returns true if the specified object is a valid Key for this Value.

public final String toString ()

Returns a string representation of this Value.

Returns
  • a string representation of the object.