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