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