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