java.lang.Object
io.qt.QFlags<QLowEnergyCharacteristic.PropertyType>
io.qt.bluetooth.QLowEnergyCharacteristic.PropertyTypes
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QLowEnergyCharacteristic.PropertyTypes>
- Enclosing class:
QLowEnergyCharacteristic
public static final class QLowEnergyCharacteristic.PropertyTypes
extends QFlags<QLowEnergyCharacteristic.PropertyType>
implements Comparable<QLowEnergyCharacteristic.PropertyTypes>
QFlags
type for enum QLowEnergyCharacteristic.PropertyType
- See Also:
-
Constructor Summary
ConstructorDescriptionPropertyTypes
(int value) Creates a new PropertyTypes with givenvalue
.Creates a new PropertyTypes where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
flags()
Returns an array of flag objects represented by this PropertyTypes.Sets the flage
setFlag
(QLowEnergyCharacteristic.PropertyType e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
PropertyTypes
Creates a new PropertyTypes where the flags inargs
are set.- Parameters:
args
- enum entries
-
PropertyTypes
public PropertyTypes(int value) Creates a new PropertyTypes with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
public final QLowEnergyCharacteristic.PropertyTypes combined(QLowEnergyCharacteristic.PropertyType e) Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QLowEnergyCharacteristic.PropertyType>
- Parameters:
e
- enum entry- Returns:
- new PropertyTypes
-
setFlag
public final QLowEnergyCharacteristic.PropertyTypes setFlag(QLowEnergyCharacteristic.PropertyType e) Sets the flage
- Overrides:
setFlag
in classQFlags<QLowEnergyCharacteristic.PropertyType>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QLowEnergyCharacteristic.PropertyTypes setFlag(QLowEnergyCharacteristic.PropertyType e, boolean on) Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QLowEnergyCharacteristic.PropertyType>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this PropertyTypes.- Overrides:
flags
in classQFlags<QLowEnergyCharacteristic.PropertyType>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QLowEnergyCharacteristic.PropertyType>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QLowEnergyCharacteristic.PropertyTypes>
-