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

yui.comn.mybatisx.extension.node.NodeWrapper Maven / Gradle / Ivy

package yui.comn.mybatisx.extension.node;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import lombok.Data;

/**
 * 

* 节点分装类 *

* * @author yuyi ([email protected]) */ @Data public class NodeWrapper implements Serializable { private static final long serialVersionUID = 5109054894068502210L; private List list; private Set checkedKeys = new HashSet<>(); public void addNode(T node) { if (null == list) { list = new ArrayList<>(); } list.add(node); } public void addCheckKey(Long key) { checkedKeys.add(key); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy