- 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
ConstructorDescriptionCreates a new FeatureWeights.FeatureWeights
(int value) Creates a new FeatureWeights with givenvalue
.FeatureWeights
(QGeoRouteRequest.FeatureWeight ... args) 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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
FeatureWeights
public FeatureWeights()Creates a new FeatureWeights. -
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>
-
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
-