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