- 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
ConstructorsConstructorDescriptionDirections(int value) Creates a new Directions with givenvalue.Directions(QSerialPort.Direction ... args) Creates a new Directions where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QSerialPort.Directionsclone()Clones the flagsfinal QSerialPort.DirectionsCombines this flags with enum entry.final intcompareTo(QSerialPort.Directions other) final QSerialPort.Direction []flags()Returns an array of flag objects represented by this Directions.final QSerialPort.DirectionsSets the flagefinal QSerialPort.DirectionssetFlag(QSerialPort.Direction e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
Directions
Creates a new Directions where the flags inargsare 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:
combinedin classQFlags<QSerialPort.Direction>- Parameters:
e- enum entry- Returns:
- new Directions
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QSerialPort.Direction>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QSerialPort.Direction>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QSerialPort.Direction>
-
compareTo
- Specified by:
compareToin interfaceComparable<QSerialPort.Directions>
-