Class TreeLeaf<T>

  • Type Parameters:
    T - the type of the value of the leaf.

    public final class TreeLeaf<T>
    extends AbstractTreeNode<T>
    This class represents a leaf in a tree data structure.
    • Constructor Detail

      • TreeLeaf

        public TreeLeaf​(T value)
        Constructs a new leaf in a tree data structure with the given value.
        Parameters:
        value - the value
    • Method Detail

      • getValue

        public T getValue()
        Gets the value
        Returns:
        the value