public enum MediaListPlayerEventType extends Enum<MediaListPlayerEventType>
Enum Constant and Description |
---|
ALL |
NEXT_ITEM_SET |
NONE |
Modifier and Type | Method and Description |
---|---|
static long |
events(MediaListPlayerEventType... types)
Get a bit-mask for one or more event types.
|
static long |
notEvents(MediaListPlayerEventType... types)
Get an inverse bit-mask for one or more event types.
|
static boolean |
notSet(long value,
MediaListPlayerEventType type)
Test whether or not a media player event type is set in a bit-mask.
|
static boolean |
set(long value,
MediaListPlayerEventType type)
Test whether or not a media player event type is set in a bit-mask.
|
long |
value()
Get the bit-mask.
|
static MediaListPlayerEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaListPlayerEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaListPlayerEventType NONE
public static final MediaListPlayerEventType NEXT_ITEM_SET
public static final MediaListPlayerEventType ALL
public static MediaListPlayerEventType[] values()
for (MediaListPlayerEventType c : MediaListPlayerEventType.values()) System.out.println(c);
public static MediaListPlayerEventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final long value()
public static long events(MediaListPlayerEventType... types)
types
- one or more event typespublic static long notEvents(MediaListPlayerEventType... types)
types
- one or more event typespublic static boolean set(long value, MediaListPlayerEventType type)
value
- bit-masktype
- event type to test fortrue
if the type value is set in the bit-mask, otherwise false
public static boolean notSet(long value, MediaListPlayerEventType type)
value
- bit-masktype
- event type to test forfalse
if the type value is set in the bit-mask, otherwise true
Copyright © 2009–2015 Caprica Software Limited. All rights reserved.