- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QCanBusDevice.Filter.FormatFilters>
- Enclosing class:
QCanBusDevice.Filter
public static final class QCanBusDevice.Filter.FormatFilters
extends QFlags<QCanBusDevice.Filter.FormatFilter>
implements Comparable<QCanBusDevice.Filter.FormatFilters>
QFlags type for enum
QCanBusDevice.Filter.FormatFilter
- See Also:
-
Constructor Summary
ConstructorDescriptionFormatFilters
(int value) Creates a new FormatFilters with givenvalue
.Creates a new FormatFilters where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
flags()
Returns an array of flag objects represented by this FormatFilters.Sets the flage
setFlag
(QCanBusDevice.Filter.FormatFilter e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
FormatFilters
Creates a new FormatFilters where the flags inargs
are set.- Parameters:
args
- enum entries
-
FormatFilters
public FormatFilters(int value) Creates a new FormatFilters with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QCanBusDevice.Filter.FormatFilter>
- Parameters:
e
- enum entry- Returns:
- new FormatFilters
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QCanBusDevice.Filter.FormatFilter>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QCanBusDevice.Filter.FormatFilters setFlag(QCanBusDevice.Filter.FormatFilter e, boolean on) Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QCanBusDevice.Filter.FormatFilter>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this FormatFilters.- Overrides:
flags
in classQFlags<QCanBusDevice.Filter.FormatFilter>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QCanBusDevice.Filter.FormatFilter>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QCanBusDevice.Filter.FormatFilters>
-