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