javax.sound.sampled
Class Control.Type

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.sound.sampled.Control.Type
Direct Known Subclasses:
BooleanControl.Type sample code for javax.sound.sampled.BooleanControl.Type definition code for javax.sound.sampled.BooleanControl.Type , CompoundControl.Type sample code for javax.sound.sampled.CompoundControl.Type definition code for javax.sound.sampled.CompoundControl.Type , EnumControl.Type sample code for javax.sound.sampled.EnumControl.Type definition code for javax.sound.sampled.EnumControl.Type , FloatControl.Type sample code for javax.sound.sampled.FloatControl.Type definition code for javax.sound.sampled.FloatControl.Type
Enclosing class:
Control sample code for javax.sound.sampled.Control definition code for javax.sound.sampled.Control

public static class Control.Type
extends Object sample code for java.lang.Object definition code for java.lang.Object

An instance of the Type class represents the type of the control. Static instances are provided for the common types.


Constructor Summary
protected Control.Type sample code for javax.sound.sampled.Control.Type.Control.Type(java.lang.String) definition code for javax.sound.sampled.Control.Type.Control.Type(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Constructs a new control type with the name specified.
 
Method Summary
 boolean equals sample code for javax.sound.sampled.Control.Type.equals(java.lang.Object) definition code for javax.sound.sampled.Control.Type.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Finalizes the equals method
 int hashCode sample code for javax.sound.sampled.Control.Type.hashCode() definition code for javax.sound.sampled.Control.Type.hashCode() ()
          Finalizes the hashCode method
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.sound.sampled.Control.Type.toString() definition code for javax.sound.sampled.Control.Type.toString() ()
          Provides the String representation of the control type.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

Control.Type sample code for javax.sound.sampled.Control.Type(java.lang.String) definition code for javax.sound.sampled.Control.Type(java.lang.String)

protected Control.Type(String sample code for java.lang.String definition code for java.lang.String  name)
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 Detail

equals sample code for javax.sound.sampled.Control.Type.equals(java.lang.Object) definition code for javax.sound.sampled.Control.Type.equals(java.lang.Object)

public final boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Finalizes the equals method

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.sound.sampled.Control.Type.hashCode() definition code for javax.sound.sampled.Control.Type.hashCode()

public final int hashCode()
Finalizes the hashCode method

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for javax.sound.sampled.Control.Type.toString() definition code for javax.sound.sampled.Control.Type.toString()

public final String sample code for java.lang.String definition code for java.lang.String  toString()
Provides the String representation of the control type. This String is the same name that was passed to the constructor.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
the control type name