- All Superinterfaces:
QtAbstractEnumerator
- All Known Subinterfaces:
QtByteFlagEnumerator
- All Known Implementing Classes:
QCalendarPermission.AccessMode
,QCanDbcFileParser.Error
,QCanFrameProcessor.Error
,QCborSimpleType
,QCborStreamReader.Type
,QContactsPermission.AccessMode
,QDtlsError
,QEventPoint.State
,QJSPrimitiveValue.Type
,QKeyFrame.InterpolationType
,QLocationPermission.Accuracy
,QLocationPermission.Availability
,QMetaType.GenericByteEnumerator
,QNetworkAddressEntry.DnsEligibilityStatus
,QtCanBus.DataFormat
,QtCanBus.DataSource
,QtCanBus.MultiplexState
The QtEnumerator interface servers as a base for all 8 Bit enum classes.
Its sole purpose is to unify the access to the
byte
value of enumerators and flags using the value()
method.-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends QtByteEnumerator>
Comparator<E>Creates a comparator for enumeration valuesClass<? extends QtByteEnumerator>
name()
int
ordinal()
default byte
value()
This function should return a byte value for the enum values of the enumeration that implements this interface.
-
Method Details
-
value
default byte value()This function should return a byte value for the enum values of the enumeration that implements this interface. -
ordinal
int ordinal()- Specified by:
ordinal
in interfaceQtAbstractEnumerator
- Returns:
- the ordinal of this enumeration constant
- See Also:
-
name
String name()- Specified by:
name
in interfaceQtAbstractEnumerator
- Returns:
- the name of this enum constant
- See Also:
-
getDeclaringClass
Class<? extends QtByteEnumerator> getDeclaringClass()- Specified by:
getDeclaringClass
in 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
-