- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QLocale.NumberOptions>
- Enclosing class:
QLocale
public static final class QLocale.NumberOptions
extends QFlags<QLocale.NumberOption>
implements Comparable<QLocale.NumberOptions>
QFlags type for enum QLocale.NumberOption- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNumberOptions(int value) Creates a new NumberOptions with givenvalue.NumberOptions(QLocale.NumberOption ... args) Creates a new NumberOptions where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QLocale.NumberOptionsclone()Clones the flagsfinal QLocale.NumberOptionsCombines this flags with enum entry.final intcompareTo(QLocale.NumberOptions other) final QLocale.NumberOption []flags()Returns an array of flag objects represented by this NumberOptions.final QLocale.NumberOptionsSets the flagefinal QLocale.NumberOptionssetFlag(QLocale.NumberOption e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
NumberOptions
Creates a new NumberOptions where the flags inargsare set.- Parameters:
args- enum entries
-
NumberOptions
public NumberOptions(int value) Creates a new NumberOptions with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QLocale.NumberOption>- Parameters:
e- enum entry- Returns:
- new NumberOptions
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QLocale.NumberOption>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QLocale.NumberOption>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this NumberOptions.- Overrides:
flagsin classQFlags<QLocale.NumberOption>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QLocale.NumberOption>
-
compareTo
- Specified by:
compareToin interfaceComparable<QLocale.NumberOptions>
-