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
ConstructorsConstructorDescriptionCreates a new PropertyTypes.PropertyTypes(int value) Creates a new PropertyTypes with givenvalue.Creates a new PropertyTypes where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intflags()Returns an array of flag objects represented by this PropertyTypes.Sets the flagesetFlag(QLowEnergyCharacteristic.PropertyType 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
-
PropertyTypes
public PropertyTypes()Creates a new PropertyTypes. -
PropertyTypes
Creates a new PropertyTypes where the flags inargsare 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:
combinedin classQFlags<QLowEnergyCharacteristic.PropertyType>- Parameters:
e- enum entry- Returns:
- new PropertyTypes
-
setFlag
public final QLowEnergyCharacteristic.PropertyTypes setFlag(QLowEnergyCharacteristic.PropertyType e) Sets the flage- Overrides:
setFlagin 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:
setFlagin 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:
flagsin classQFlags<QLowEnergyCharacteristic.PropertyType>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QLowEnergyCharacteristic.PropertyType>
-
compareTo
- Specified by:
compareToin interfaceComparable<QLowEnergyCharacteristic.PropertyTypes>
-
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
-