- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QLocale.DataSizeFormats>
- Enclosing class:
- QLocale
public static final class QLocale.DataSizeFormats extends QFlags<QLocale.DataSizeFormat> implements Comparable<QLocale.DataSizeFormats>
QFlags type for enum
QLocale.DataSizeFormat
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DataSizeFormats(int value)
Creates a new DataSizeFormats with givenvalue
.DataSizeFormats(QLocale.DataSizeFormat... args)
Creates a new DataSizeFormats where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QLocale.DataSizeFormats
clone()
Clones the flagsQLocale.DataSizeFormats
combined(QLocale.DataSizeFormat e)
Combines this flags with enum entry.int
compareTo(QLocale.DataSizeFormats other)
QLocale.DataSizeFormat[]
flags()
Returns an array of flag objects represented by this DataSizeFormats.QLocale.DataSizeFormats
setFlag(QLocale.DataSizeFormat e)
Sets the flage
QLocale.DataSizeFormats
setFlag(QLocale.DataSizeFormat e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
DataSizeFormats
Creates a new DataSizeFormats where the flags inargs
are set.- Parameters:
args
- enum entries
-
DataSizeFormats
public DataSizeFormats(int value)Creates a new DataSizeFormats with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QLocale.DataSizeFormat>
- Parameters:
e
- enum entry- Returns:
- new DataSizeFormats
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QLocale.DataSizeFormat>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QLocale.DataSizeFormat>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this DataSizeFormats.- Overrides:
flags
in classQFlags<QLocale.DataSizeFormat>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QLocale.DataSizeFormat>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QLocale.DataSizeFormats>
-