- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description QueryFlags(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 Type Method Description QScriptClass.QueryFlags
clone()
Clones the flagsQScriptClass.QueryFlags
combined(QScriptClass.QueryFlag e)
Combines this flags with enum entry.int
compareTo(QScriptClass.QueryFlags other)
QScriptClass.QueryFlag[]
flags()
Returns an array of flag objects represented by this QueryFlags.QScriptClass.QueryFlags
setFlag(QScriptClass.QueryFlag e)
Sets the flage
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>
-