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