- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description QGeoRouteRequest.FeatureWeights
clone()
Clones the flagsQGeoRouteRequest.FeatureWeights
combined(QGeoRouteRequest.FeatureWeight e)
Combines this flags with enum entry.int
compareTo(QGeoRouteRequest.FeatureWeights other)
QGeoRouteRequest.FeatureWeight[]
flags()
Returns an array of flag objects represented by this FeatureWeights.QGeoRouteRequest.FeatureWeights
setFlag(QGeoRouteRequest.FeatureWeight e)
Sets the flage
QGeoRouteRequest.FeatureWeights
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>
-