@FunctionalInterface
public interface NodeTransformer<T extends Node,U extends Node>
Node
instance.Modifier and Type | Method and Description |
---|---|
T |
transform(U node)
Returns an instance of a class that extends
Node . |
T transform(U node)
Node
.
This instance should represent a transformed version of the Node
instance given as parameter argument.
This transformed version may not be null
.
If node
is null
, a NullPointerException
may be thrown. But no guarantees can be made.
node
- the Node
instance to transformNode
java.lang.NullPointerException
- thrown if, and only if, node
is null