Skip to content

Commit

Permalink
added TreeNode
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Oct 31, 2023
1 parent ccd04ee commit 6629a5b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bean/src/main/java/io/github/mmm/entity/bean/TreeNode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.entity.bean;

import io.github.mmm.bean.AbstractInterface;
import io.github.mmm.entity.property.link.LinkProperty;

/**
* {@link EntityBean} that represents a node in a tree. The tree hierarchy is defined by the {@link #Parent() parent}
* relation.
*
* @param <T> type of the tree-nodes.
* @since 1.0.0
*/
@AbstractInterface
public abstract interface TreeNode<T extends TreeNode<T>> extends EntityBean {

/**
* @return the parent node or {@code null} if this is the root node.
*/
LinkProperty<T> Parent();

}

0 comments on commit 6629a5b

Please sign in to comment.