Package ca.corbett.extras.audio
Enum Class PlaybackThread.StopReason
- All Implemented Interfaces:
Serializable,Comparable<PlaybackThread.StopReason>,Constable
- Enclosing class:
PlaybackThread
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe audio stopped because the clip ran to the very end.The audio stopped because it was interrupted by a call to stop() or because a listener signalled us to stop.The audio stopped because a limit was configured when we started, and we hit that limit. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlaybackThread.StopReasonReturns the enum constant of this class with the specified name.static PlaybackThread.StopReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUDIO_EXHAUSTED
The audio stopped because the clip ran to the very end. -
INTERRUPTED
The audio stopped because it was interrupted by a call to stop() or because a listener signalled us to stop. -
LIMIT_REACHED
The audio stopped because a limit was configured when we started, and we hit that limit.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-