- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QBluetooth.SecurityFlags>
- Enclosing class:
QBluetooth
public static final class QBluetooth.SecurityFlags
extends QFlags<QBluetooth.Security>
implements Comparable<QBluetooth.SecurityFlags>
QFlags
type for enum QBluetooth.Security
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SecurityFlags.SecurityFlags
(int value) Creates a new SecurityFlags with givenvalue
.SecurityFlags
(QBluetooth.Security ... args) Creates a new SecurityFlags where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QBluetooth.SecurityFlags
clone()
Clones the flagsfinal QBluetooth.SecurityFlags
Combines this flags with enum entry.final int
final QBluetooth.Security []
flags()
Returns an array of flag objects represented by this SecurityFlags.final QBluetooth.SecurityFlags
Sets the flage
final QBluetooth.SecurityFlags
setFlag
(QBluetooth.Security 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
-
SecurityFlags
public SecurityFlags()Creates a new SecurityFlags. -
SecurityFlags
Creates a new SecurityFlags where the flags inargs
are set.- Parameters:
args
- enum entries
-
SecurityFlags
public SecurityFlags(int value) Creates a new SecurityFlags with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QBluetooth.Security>
- Parameters:
e
- enum entry- Returns:
- new SecurityFlags
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QBluetooth.Security>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QBluetooth.Security>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this SecurityFlags.- Overrides:
flags
in classQFlags<QBluetooth.Security>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QBluetooth.Security>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QBluetooth.SecurityFlags>
-
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
-