- 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
ConstructorsConstructorDescriptionCreates a new FeatureWeights.FeatureWeights(int value) Creates a new FeatureWeights with givenvalue.FeatureWeights(QGeoRouteRequest.FeatureWeight ... args) Creates a new FeatureWeights where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QGeoRouteRequest.FeatureWeight []flags()Returns an array of flag objects represented by this FeatureWeights.Sets the flagesetFlag(QGeoRouteRequest.FeatureWeight e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
FeatureWeights
public FeatureWeights()Creates a new FeatureWeights. -
FeatureWeights
Creates a new FeatureWeights where the flags inargsare 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:
combinedin classQFlags<QGeoRouteRequest.FeatureWeight>- Parameters:
e- enum entry- Returns:
- new FeatureWeights
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QGeoRouteRequest.FeatureWeight>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QGeoRouteRequest.FeatureWeight>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QGeoRouteRequest.FeatureWeight>
-
compareTo
- Specified by:
compareToin 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
-