java.lang.Object
io.qt.core.QMetaType.GenericFlag
- All Implemented Interfaces:
QtAbstractEnumerator
,QtAbstractFlagEnumerator
,QtEnumerator
,QtFlagEnumerator
- Enclosing class:
- QMetaType
public static final class QMetaType.GenericFlag extends Object implements QtFlagEnumerator
This class represents a QMetaType-registered but Java-unknown enumerator type which can be used in QFlags.
-
Method Summary
Modifier and Type Method Description Class<? extends QtFlagEnumerator>
getDeclaringClass()
String
name()
int
ordinal()
int
value()
This function should return an integer value for the enum values of the enumeration that implements this interface.
-
Method Details
-
value
public int value()Description copied from interface:QtFlagEnumerator
This function should return an integer value for the enum values of the enumeration that implements this interface.- Specified by:
value
in interfaceQtEnumerator
- Specified by:
value
in interfaceQtFlagEnumerator
-
ordinal
public int ordinal()- Specified by:
ordinal
in interfaceQtAbstractEnumerator
- Specified by:
ordinal
in interfaceQtEnumerator
- Returns:
- the ordinal of this enumeration constant
- See Also:
Enum.ordinal()
-
name
- Specified by:
name
in interfaceQtAbstractEnumerator
- Specified by:
name
in interfaceQtEnumerator
- Returns:
- the name of this enum constant
- See Also:
Enum.name()
-
getDeclaringClass
- Specified by:
getDeclaringClass
in interfaceQtAbstractEnumerator
- Specified by:
getDeclaringClass
in interfaceQtEnumerator
- Returns:
- the Class object corresponding to this enum constant's enum type
- See Also:
Enum.getDeclaringClass()
-