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