Enum TrackMarkerHandler.MarkerState
- java.lang.Object
-
- java.lang.Enum<TrackMarkerHandler.MarkerState>
-
- com.sedmelluq.discord.lavaplayer.track.TrackMarkerHandler.MarkerState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TrackMarkerHandler.MarkerState>
- Enclosing interface:
- TrackMarkerHandler
public static enum TrackMarkerHandler.MarkerState extends java.lang.Enum<TrackMarkerHandler.MarkerState>
The state of the marker at the moment the handle method is called.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYPASSEDA seek was performed which jumped over the marked position.ENDEDThe track ended without the marker being triggered (either due to an exception or because the track duration was smaller than the marked position).LATEThe playback position was already beyond the marked position when the marker was placed.OVERWRITTENThe marker has been overwritten by setting the marker of the track to another non-null marker.REACHEDThe specified position has been reached with normal playback.REMOVEDThe marker has been removed by setting the marker of the track to null.STOPPEDThe track was stopped before it ended, before the marked position was reached.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrackMarkerHandler.MarkerStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TrackMarkerHandler.MarkerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REACHED
public static final TrackMarkerHandler.MarkerState REACHED
The specified position has been reached with normal playback.
-
REMOVED
public static final TrackMarkerHandler.MarkerState REMOVED
The marker has been removed by setting the marker of the track to null.
-
OVERWRITTEN
public static final TrackMarkerHandler.MarkerState OVERWRITTEN
The marker has been overwritten by setting the marker of the track to another non-null marker.
-
BYPASSED
public static final TrackMarkerHandler.MarkerState BYPASSED
A seek was performed which jumped over the marked position.
-
STOPPED
public static final TrackMarkerHandler.MarkerState STOPPED
The track was stopped before it ended, before the marked position was reached.
-
LATE
public static final TrackMarkerHandler.MarkerState LATE
The playback position was already beyond the marked position when the marker was placed.
-
ENDED
public static final TrackMarkerHandler.MarkerState ENDED
The track ended without the marker being triggered (either due to an exception or because the track duration was smaller than the marked position).
-
-
Method Detail
-
values
public static TrackMarkerHandler.MarkerState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TrackMarkerHandler.MarkerState c : TrackMarkerHandler.MarkerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrackMarkerHandler.MarkerState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-