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