- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description QCanBusDevice.Directions
clone()
Clones the flagsQCanBusDevice.Directions
combined(QCanBusDevice.Direction e)
Combines this flags with enum entry.int
compareTo(QCanBusDevice.Directions other)
QCanBusDevice.Direction[]
flags()
Returns an array of flag objects represented by this Directions.QCanBusDevice.Directions
setFlag(QCanBusDevice.Direction e)
Sets the flage
QCanBusDevice.Directions
setFlag(QCanBusDevice.Direction e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
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>
-