- All Superinterfaces:
QtAbstractEnumerator
- All Known Subinterfaces:
QtLongFlagEnumerator
- All Known Implementing Classes:
QCborTag,QMetaType.GenericLongEnumerator
The QtEnumerator interface servers as a base for all 64 Bit enum classes.
Its sole purpose is to unify the access to the
long
value of enumerators and flags using the value() method.-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends QtLongEnumerator>
Comparator<E>Creates a comparator for enumeration valuesClass<? extends QtLongEnumerator>name()intordinal()default longvalue()This function should return a long value for the enum values of the enumeration that implements this interface.
-
Method Details
-
value
default long value()This function should return a long value for the enum values of the enumeration that implements this interface. -
ordinal
int ordinal()- Specified by:
ordinalin interfaceQtAbstractEnumerator- Returns:
- the ordinal of this enumeration constant
- See Also:
-
name
String name()- Specified by:
namein interfaceQtAbstractEnumerator- Returns:
- the name of this enum constant
- See Also:
-
getDeclaringClass
Class<? extends QtLongEnumerator> getDeclaringClass()- Specified by:
getDeclaringClassin interfaceQtAbstractEnumerator- Returns:
- the Class object corresponding to this enum constant's enum type
- See Also:
-
comparator
Creates a comparator for enumeration values- Type Parameters:
E-- Returns:
- comparator
-