接口 ITree<E extends ITree<E>>

所有超级接口:
IEntity<E>

public interface ITree<E extends ITree<E>> extends IEntity<E>

标准树接口

作者:
Hamm.cn
  • 方法详细资料

    • getName

      String getName()

      获取树的名称

      返回:
      树名称
    • setName

      E setName(String name)

      设置树名称

      参数:
      name - 树名称
      返回:
      树实体
    • setParentId

      E setParentId(Long parentId)

      设置父级ID

      参数:
      parentId - 设置父级ID
      返回:
      树实体
    • getParentId

      Long getParentId()

      获取树的父级ID

      返回:
      父级ID
    • setChildren

      E setChildren(List<E> children)

      设置树的子集列表

      参数:
      children - 子集
      返回:
      树实体
    • getChildren

      List<E> getChildren()

      获取树的子集列表

      返回:
      树的子集