- 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 inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QSerialPort.PinoutSignal []
flags()
Returns an array of flag objects represented by this PinoutSignals.Sets the flage
setFlag
(QSerialPort.PinoutSignal e, boolean on) Sets or clears the flagflag
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
PinoutSignals
public PinoutSignals()Creates a new PinoutSignals. -
PinoutSignals
Creates a new PinoutSignals where the flags inargs
are 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:
combined
in classQFlags<QSerialPort.PinoutSignal>
- Parameters:
e
- enum entry- Returns:
- new PinoutSignals
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QSerialPort.PinoutSignal>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in 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:
flags
in classQFlags<QSerialPort.PinoutSignal>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QSerialPort.PinoutSignal>
-
compareTo
- Specified by:
compareTo
in 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
-