Package com.usatiuk.kleppmanntree
Interface NodeMeta
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
JKleppmannTreeNodeMeta
- All Known Implementing Classes:
JKleppmannTreeNodeMetaDirectory
,JKleppmannTreeNodeMetaFile
,JKleppmannTreeNodeMetaPeer
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
-
Method Details
-
name
String name()Returns the name of the node.- Returns:
- the name of the node
-
withName
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
-