Interface NodeMeta

All Superinterfaces:
Serializable
All Known Subinterfaces:
JKleppmannTreeNodeMeta
All Known Implementing Classes:
JKleppmannTreeNodeMetaDirectory, JKleppmannTreeNodeMetaFile, JKleppmannTreeNodeMetaPeer

public interface NodeMeta extends Serializable
Represents metadata associated with a node in the Kleppmann tree. This interface is used to define the metadata that can be associated with nodes in the tree. Implementations of this interface should provide a name for the node and a method to create a copy of it with a new name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the node.
    Creates a copy of the metadata with a new name.
  • Method Details

    • name

      String name()
      Returns the name of the node.
      Returns:
      the name of the node
    • withName

      NodeMeta withName(String name)
      Creates a copy of the metadata with a new name.
      Parameters:
      name - the new name for the metadata
      Returns:
      a new instance of NodeMeta with the specified name