- 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
ConstructorDescriptionCreates a new SectionFlags.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 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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
SectionFlags
public SectionFlags()Creates a new SectionFlags. -
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>
-
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
-