- 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
ConstructorsConstructorDescriptionCreates a new DataSizeFormats.DataSizeFormats(int value) Creates a new DataSizeFormats with givenvalue.DataSizeFormats(QLocale.DataSizeFormat ... args) Creates a new DataSizeFormats where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QLocale.DataSizeFormatsclone()Clones the flagsfinal QLocale.DataSizeFormatsCombines this flags with enum entry.final intcompareTo(QLocale.DataSizeFormats other) final QLocale.DataSizeFormat []flags()Returns an array of flag objects represented by this DataSizeFormats.final QLocale.DataSizeFormatsSets the flagefinal QLocale.DataSizeFormatssetFlag(QLocale.DataSizeFormat e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
DataSizeFormats
public DataSizeFormats()Creates a new DataSizeFormats. -
DataSizeFormats
Creates a new DataSizeFormats where the flags inargsare 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:
combinedin classQFlags<QLocale.DataSizeFormat>- Parameters:
e- enum entry- Returns:
- new DataSizeFormats
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QLocale.DataSizeFormat>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QLocale.DataSizeFormat>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QLocale.DataSizeFormat>
-
compareTo
- Specified by:
compareToin 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
-