Home » openjdk-7 » sun » awt » [javadoc | source]
sun.awt
public static class: SunHints.Value [javadoc | source]
java.lang.Object
   sun.awt.SunHints$Value
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.
Constructor:
 public Value(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.
Method from sun.awt.SunHints$Value Summary:
equals,   get,   getIndex,   hashCode,   isCompatibleKey,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.awt.SunHints$Value Detail:
 public final boolean equals(Object o) 
    The equals method for all SunHints.Value objects will return the same result as the equality operator '=='.
 public static 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.
 public final boolean isCompatibleKey(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.