T - Java enum typepublic interface NativeEnum<T extends Enum<T>>
| Modifier and Type | Method and Description |
|---|---|
static <T extends Enum<T> & NativeEnum<T>> |
fromInt(Class<T> type,
int intValue)
Convert a native int value to the specified NativeEnum type.
|
static <T extends Enum<T> & NativeEnum<T>> |
fromInt(Class<T> type,
T defValue,
int intValue)
Convert a native int value to the specified NativeEnum type, allowing for
a default value (or null) to be returned instead of throwing an exception
on invalid values.
|
int |
intValue() |
int intValue()
static <T extends Enum<T> & NativeEnum<T>> T fromInt(Class<T> type, int intValue)
T - enum typetype - enum classintValue - native int valueIllegalArgumentException - if no enum value matches the specified
native int valuestatic <T extends Enum<T> & NativeEnum<T>> T fromInt(Class<T> type, T defValue, int intValue)
T - enum typetype - enum classdefValue - default value to return if no match (may be null)intValue - native int valueCopyright © 2021 gstreamer-java. All rights reserved.