001package com.thed.zblast.parser.model; 002 003import java.util.ArrayList; 004import java.util.List; 005 006public class TreeSelectionInfo { 007 008 public Long treeid; 009 public List<Long> tctIds; 010 public boolean isExclusion; 011 012 public TreeSelectionInfo() { 013 // for rest json 014 } 015 016 public TreeSelectionInfo(Long treeId, List<Long> tctIds, boolean isExclusion) { 017 this.treeid = treeId; 018 if (tctIds == null) { 019 this.tctIds = new ArrayList<>(); 020 } else { 021 this.tctIds = tctIds; 022 } 023 this.isExclusion = isExclusion; 024 } 025 026 @Override 027 public String toString() { 028 return "TreeSelectionInfo [treeid=%s, tctIds=%s, isExclusion=%s]".formatted(treeid, tctIds, isExclusion); 029 } 030 031 public Long getTreeid() { 032 return treeid; 033 } 034 035 public void setTreeid(Long treeid) { 036 this.treeid = treeid; 037 } 038 039 public List<Long> getTctIds() { 040 return tctIds; 041 } 042 043 public void setTctIds(List<Long> tctIds) { 044 this.tctIds = tctIds; 045 } 046 047 public boolean isExclusion() { 048 return isExclusion; 049 } 050 051 public void setExclusion(boolean exclusion) { 052 isExclusion = exclusion; 053 } 054}