- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QSerialPort.PinoutSignals>
- Enclosing class:
QSerialPort
public static final class QSerialPort.PinoutSignals
extends QFlags<QSerialPort.PinoutSignal>
implements Comparable<QSerialPort.PinoutSignals>
QFlags type for enum QSerialPort.PinoutSignal- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new PinoutSignals.PinoutSignals(int value) Creates a new PinoutSignals with givenvalue.PinoutSignals(QSerialPort.PinoutSignal ... args) Creates a new PinoutSignals where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QSerialPort.PinoutSignal []flags()Returns an array of flag objects represented by this PinoutSignals.Sets the flagesetFlag(QSerialPort.PinoutSignal e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
PinoutSignals
public PinoutSignals()Creates a new PinoutSignals. -
PinoutSignals
Creates a new PinoutSignals where the flags inargsare set.- Parameters:
args- enum entries
-
PinoutSignals
public PinoutSignals(int value) Creates a new PinoutSignals with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QSerialPort.PinoutSignal>- Parameters:
e- enum entry- Returns:
- new PinoutSignals
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QSerialPort.PinoutSignal>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QSerialPort.PinoutSignal>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this PinoutSignals.- Overrides:
flagsin classQFlags<QSerialPort.PinoutSignal>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QSerialPort.PinoutSignal>
-
compareTo
- Specified by:
compareToin interfaceComparable<QSerialPort.PinoutSignals>
-
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
-