MCPcopy Create free account
hub / github.com/diyhi/bbs / childTag

Method childTag

src/main/java/cms/component/topic/TagComponent.java:46–56  ·  view source on GitHub ↗

标签放入标签中(递归) @param new_tag 新标签 @param tagList 未存入子标签集合 @return

(Tag new_tag, List<Tag> tagList)

Source from the content-addressed store, hash-verified

44 * @return
45 */
46 public void childTag(Tag new_tag, List<Tag> tagList){
47 if(new_tag != null && new_tag.getChildNodeNumber() >0){
48 for(Tag tag : tagList){
49 if(tag.getParentId().equals(new_tag.getId())){
50 new_tag.addChildTag(tag);
51 this.childTag(tag, tagList);
52
53 }
54 }
55 }
56 }
57 /**
58 * 话题标签排序(递归)
59 * @param tagList 已存入子标签集合

Callers 3

getAllTopicTagListMethod · 0.80
getAllTagMethod · 0.80

Calls 2

equalsMethod · 0.45
addChildTagMethod · 0.45

Tested by

no test coverage detected