javax.sound.sampled

Class LineEvent.Type

public static class LineEvent.Type extends Object

This class represents the kinds of state changes that can occur to a Line. The standard states are availabe as static instances.

Since: 1.3

Field Summary
static LineEvent.TypeCLOSE
An event of this type is posted when a Line closes.
static LineEvent.TypeOPEN
An event of this type is posted when a Line opens.
static LineEvent.TypeSTART
An event of this type is posted when a Line starts.
static LineEvent.TypeSTOP
An event of this type is posted when a Line stops.
Constructor Summary
protected Type(String name)
Create a new type with the indicated name.
Method Summary
booleanequals(Object o)
inthashCode()
StringtoString()
Return the name of this Type.

Field Detail

CLOSE

public static final LineEvent.Type CLOSE
An event of this type is posted when a Line closes.

OPEN

public static final LineEvent.Type OPEN
An event of this type is posted when a Line opens.

START

public static final LineEvent.Type START
An event of this type is posted when a Line starts.

STOP

public static final LineEvent.Type STOP
An event of this type is posted when a Line stops.

Constructor Detail

Type

protected Type(String name)
Create a new type with the indicated name.

Parameters: name the name

Method Detail

equals

public final boolean equals(Object o)

hashCode

public final int hashCode()

toString

public String toString()
Return the name of this Type.