-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
bean/src/main/java/io/github/mmm/entity/bean/TreeNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
} |