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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PropertyTypes(int value)
Creates a new PropertyTypes with givenvalue
.PropertyTypes(QLowEnergyCharacteristic.PropertyType... args)
Creates a new PropertyTypes where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QLowEnergyCharacteristic.PropertyTypes
clone()
Clones the flagsQLowEnergyCharacteristic.PropertyTypes
combined(QLowEnergyCharacteristic.PropertyType e)
Combines this flags with enum entry.int
compareTo(QLowEnergyCharacteristic.PropertyTypes other)
QLowEnergyCharacteristic.PropertyType[]
flags()
Returns an array of flag objects represented by this PropertyTypes.QLowEnergyCharacteristic.PropertyTypes
setFlag(QLowEnergyCharacteristic.PropertyType e)
Sets the flage
QLowEnergyCharacteristic.PropertyTypes
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>
-