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