public interface TreeTransformer
Modifier and Type | Method and Description |
---|---|
<E,N extends OpenMutableBinaryTreeNode<E,N>> |
rotateInPlace(N rootParent,
N rotationRoot,
RotationDirection direction)
Rotate a tree using some node as rotation root.
|
<E,N extends OpenMutableBinaryTreeNode<E,N>> |
rotateRootInPlace(MutableBinaryTree<E,N> tree,
RotationDirection direction)
Rotate a tree using the tree's root node as the rotation root.
|
<E,N extends OpenMutableBinaryTreeNode<E,N>> void rotateRootInPlace(MutableBinaryTree<E,N> tree, RotationDirection direction)
E
- The element typeN
- The node typetree
- The tree to rotatedirection
- The direction to rotate<E,N extends OpenMutableBinaryTreeNode<E,N>> void rotateInPlace(N rootParent, N rotationRoot, RotationDirection direction)
E
- The element typeN
- The node typerootParent
- The parent of the rotation rootrotationRoot
- The rotation rootdirection
- The direction to rotateCopyright © 2014–2016. All rights reserved.