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