- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QSGNode.Flags>
- Enclosing class:
QSGNode
public static final class QSGNode.Flags
extends QFlags<QSGNode.Flag>
implements Comparable<QSGNode.Flags>
QFlags type for enum QSGNode.Flag- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlags()Creates a new Flags.Flags(int value) Creates a new Flags with givenvalue.Flags(QSGNode.Flag ... args) Creates a new Flags where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QSGNode.Flagsclone()Clones the flagsfinal QSGNode.FlagsCombines this flags with enum entry.final intcompareTo(QSGNode.Flags other) final QSGNode.Flag []flags()Returns an array of flag objects represented by this Flags.final QSGNode.FlagsSets the flagefinal QSGNode.FlagssetFlag(QSGNode.Flag e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
Flags
public Flags()Creates a new Flags. -
Flags
Creates a new Flags where the flags inargsare set.- Parameters:
args- enum entries
-
Flags
public Flags(int value) Creates a new Flags with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QSGNode.Flag>- Parameters:
e- enum entry- Returns:
- new Flags
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QSGNode.Flag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QSGNode.Flag>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this Flags.- Overrides:
flagsin classQFlags<QSGNode.Flag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QSGNode.Flag>
-
compareTo
- Specified by:
compareToin interfaceComparable<QSGNode.Flags>
-
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
-