- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description NumberOptions(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 Type Method Description QLocale.NumberOptions
clone()
Clones the flagsQLocale.NumberOptions
combined(QLocale.NumberOption e)
Combines this flags with enum entry.int
compareTo(QLocale.NumberOptions other)
QLocale.NumberOption[]
flags()
Returns an array of flag objects represented by this NumberOptions.QLocale.NumberOptions
setFlag(QLocale.NumberOption e)
Sets the flage
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>
-