Constructor Summary
Constructors
protected
Constructs a new control type with the name specified.
Method Summary
All Methods Instance Methods Concrete Methods
final boolean
Indicates whether the specified object is equal to this control type,
returning true
if the objects are the same.
final int
Returns a hash code value for this control type.
Returns type's name as the string representation of the control type.
Constructor Details
Type
Constructs a new control type with the name specified. The name
should be a descriptive string appropriate for labelling the control
in an application, such as "Gain" or "Balance".
Parameters:
name
- the name of the new control type
Method Details
equals
public final boolean equals (Object obj)
Indicates whether the specified object is equal to this control type,
returning true
if the objects are the same.
Overrides:
equals
in class Object
Parameters:
obj
- the reference object with which to compare
Returns:
true
if the specified object is equal to this control
type; false
otherwise
See Also:
hashCode
public final int hashCode ()
Returns a hash code value for this control type.
Overrides:
hashCode
in class Object
Returns:
a hash code value for this control type
See Also:
toString
public final String toString ()
Returns type's name as the string representation of the control type.
Overrides:
toString
in class Object
Returns:
a string representation of the control type
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .