src/com/shop/util/CategoryNode.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.shop.util;

import java.util.ArrayList;
import java.util.List;

public class CategoryNode {
    private Long categoryId;

    private Long parentId;

    private String name;

    private List<CategoryNode> children;

    public CategoryNode() {
        this.categoryId = 1L;
        this.name = "全部商品";
        this.children = new ArrayList<CategoryNode>();
    }

    public CategoryNode(Long categoryId, Long parentId, String name) {
        this.categoryId = categoryId;
        this.parentId = parentId;
        this.name = name;
        this.children = new ArrayList<CategoryNode>();
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CategoryNode> getChildren() {
        return children;
    }

    public void setChildren(List<CategoryNode> children) {
        this.children = children;
    }

    public void addChild(CategoryNode node) {
后面还有 13 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。