- 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
ConstructorsConstructorDescriptionCreates a new DirtyState.DirtyState(int value) Creates a new DirtyState with givenvalue.DirtyState(QSGNode.DirtyStateBit ... args) Creates a new DirtyState where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QSGNode.DirtyStateclone()Clones the flagsfinal QSGNode.DirtyStateCombines this flags with enum entry.final intcompareTo(QSGNode.DirtyState other) final QSGNode.DirtyStateBit []flags()Returns an array of flag objects represented by this DirtyState.final QSGNode.DirtyStateSets the flagefinal QSGNode.DirtyStatesetFlag(QSGNode.DirtyStateBit 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
-
DirtyState
public DirtyState()Creates a new DirtyState. -
DirtyState
Creates a new DirtyState where the flags inargsare 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:
combinedin classQFlags<QSGNode.DirtyStateBit>- Parameters:
e- enum entry- Returns:
- new DirtyState
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QSGNode.DirtyStateBit>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QSGNode.DirtyStateBit>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QSGNode.DirtyStateBit>
-
compareTo
- Specified by:
compareToin 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
-