- 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
ConstructorDescriptionNumberOptions
(int value) Creates a new NumberOptions with givenvalue
.NumberOptions
(QLocale.NumberOption... args) Creates a new NumberOptions where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QLocale.NumberOptions
clone()
Clones the flagsfinal QLocale.NumberOptions
Combines this flags with enum entry.final int
compareTo
(QLocale.NumberOptions other) final QLocale.NumberOption[]
flags()
Returns an array of flag objects represented by this NumberOptions.final QLocale.NumberOptions
Sets the flage
final QLocale.NumberOptions
setFlag
(QLocale.NumberOption e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
NumberOptions
Creates a new NumberOptions where the flags inargs
are 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:
combined
in classQFlags<QLocale.NumberOption>
- Parameters:
e
- enum entry- Returns:
- new NumberOptions
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QLocale.NumberOption>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in 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:
flags
in classQFlags<QLocale.NumberOption>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QLocale.NumberOption>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QLocale.NumberOptions>
-