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