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