public enum NMediaType extends Enum<NMediaType> implements com.neurotec.lang.NEnum
| Modifier and Type | Method and Description |
|---|---|
static NMediaType |
get(int value)
Gets the media type specified by enumeration value.
|
static EnumSet<NMediaType> |
getSet(int value)
Gets the enumeration set specified by value.
|
int |
getValue()
Gets the enumeration value of the current object.
|
boolean |
isValid()
Checks whether the current media type is valid.
|
static boolean |
isValid(EnumSet<NMediaType> value)
Checks whether the specified media type is valid.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static NMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NMediaType AUDIO
public static final NMediaType VIDEO
public static NMediaType[] values()
for (NMediaType c : NMediaType.values()) System.out.println(c);
public static NMediaType 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 static com.neurotec.lang.NType nativeTypeOf()
public static NMediaType get(int value)
value - Enumeration value.public static EnumSet<NMediaType> getSet(int value)
value - Integer value.public int getValue()
getValue in interface com.neurotec.lang.NEnumpublic boolean isValid()
public static boolean isValid(EnumSet<NMediaType> value)
value - The specified media type.Copyright © 2016 Neurotechnology. All rights reserved.