com.neko233.toolchain.common.algorithm.bst.BstApi Maven / Gradle / Ivy
package com.neko233.toolchain.common.algorithm.bst;
public interface BstApi {
/**
* who is the root node
*/
T root();
/**
* how to get the left child of the node
*/
T left(T node);
/**
* how to get the right child of the node
*/
T right(T node);
/**
* how to print the node
*/
T data(T node);
}