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