- 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:
-
Constructor Summary
ConstructorDescriptionSectionFlags
(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 TypeMethodDescriptionfinal QString.SectionFlags
clone()
Clones the flagsfinal QString.SectionFlags
Combines this flags with enum entry.final int
compareTo
(QString.SectionFlags other) final QString.SectionFlag[]
flags()
Returns an array of flag objects represented by this SectionFlags.final QString.SectionFlags
Sets the flage
final 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>
-