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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a value using the indicated private index.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The equals method for all SunHints.Value objects will return
the same result as the equality operator '=='.
| |||||||||||
Returns the numeric index associated with this Key.
| |||||||||||
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 true if the specified object is a valid Key
for this Value.
| |||||||||||
Returns a string representation of this Value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
The equals method for all SunHints.Value objects will return the same result as the equality operator '=='.
o | the reference object with which to compare. |
---|
true
if this object is the same as the obj
argument; false
otherwise.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.
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 true if the specified object is a valid Key for this Value.
Returns a string representation of this Value.