public class NullOwner extends Object implements NodeOwner
null
pointer to avoid cluttering implementations with null
checks.
For internal use only. May be renamed or removed in a future release.
Modifier and Type | Method and Description |
---|---|
static NullOwner |
get()
Gets the singleton null owner instance.
|
boolean |
hasNode(StateNode node)
Check if given node is registered to this node owner.
|
void |
markAsDirty(StateNode node)
Marks a node owned by this instance as dirty.
|
int |
register(StateNode node)
Registers a node with this node owner.
|
void |
unregister(StateNode node)
Unregisters a node from this owner.
|
public static NullOwner get()
public int register(StateNode node)
NodeOwner
public void unregister(StateNode node)
NodeOwner
unregister
in interface NodeOwner
node
- the node to unregisterpublic void markAsDirty(StateNode node)
NodeOwner
StateTree.collectDirtyNodes()
.markAsDirty
in interface NodeOwner
node
- the node to be marked as dirtyCopyright © 2022. All rights reserved.