public abstract class ServerSideFeature extends NodeFeature
For internal use only. May be renamed or removed in a future release.
Constructor and Description |
---|
ServerSideFeature(StateNode node)
Creates a new feature for the given node.
|
Modifier and Type | Method and Description |
---|---|
void |
collectChanges(Consumer<NodeChange> collector)
Collects all changes that are recorded for this feature.
|
void |
forEachChild(Consumer<StateNode> action)
Passes each child node instance to the given consumer.
|
void |
generateChangesFromEmpty()
Generates all changes that would be needed to take this node from its
initial empty state to its current state.
|
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
public ServerSideFeature(StateNode node)
node
- the node which supports the featurepublic void collectChanges(Consumer<NodeChange> collector)
NodeFeature
collectChanges
in class NodeFeature
collector
- a consumer accepting node changespublic void generateChangesFromEmpty()
NodeFeature
generateChangesFromEmpty
in class NodeFeature
public void forEachChild(Consumer<StateNode> action)
NodeFeature
forEachChild
in class NodeFeature
action
- the consumer that accepts each childCopyright © 2025. All rights reserved.