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