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