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