package org.khelekore.prtree;

/** A factory that creates the nodes (either leaf or internal).
 * @param <N> the type of the node
 */
interface NodeFactory<N> {
    /** Create a new node 
     * @param data the data entries for the node, fully filled.
     * @return the new node
     */
    N create (Object[] data);
}
