- 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:
-
Constructor Summary
ConstructorDescriptionCreates a new DataSizeFormats.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 TypeMethodDescriptionfinal QLocale.DataSizeFormats
clone()
Clones the flagsfinal QLocale.DataSizeFormats
Combines this flags with enum entry.final int
compareTo
(QLocale.DataSizeFormats other) final QLocale.DataSizeFormat []
flags()
Returns an array of flag objects represented by this DataSizeFormats.final QLocale.DataSizeFormats
Sets the flage
final QLocale.DataSizeFormats
setFlag
(QLocale.DataSizeFormat e, boolean on) Sets or clears the flagflag
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
DataSizeFormats
public DataSizeFormats()Creates a new DataSizeFormats. -
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>
-
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
-