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