All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.macrocloud.kernel.toolkit.node.INode Maven / Gradle / Ivy

There is a newer version: 1.1.0-RELEASE
Show newest version
package org.macrocloud.kernel.toolkit.node;

import java.io.Serializable;
import java.util.List;


/**
 * Created by kernel.
 */
public interface INode extends Serializable {

	/**
	 * 主键.
	 */
	Long getId();

	/**
	 * 父主键.
	 */
	Long getParentId();

	/**
	 * 子孙节点.
	 */
	List getChildren();

	/**
	 * 是否有子孙节点.
	 *
	 * @return Boolean
	 */
	default Boolean getHasChildren() {
		return false;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy