1 2 23 package com.geinuke.util.collection; 24 25 import java.util.ArrayList ; 26 public class TreeArrayList { 27 protected ArrayList childs=null; 28 protected int size=0; 29 protected Object node=null; 30 public TreeArrayList(Object o){ 31 this.node=o; 32 this.size=0; 33 } 34 35 38 public ArrayList getChilds() { 39 return childs; 40 } 41 44 public void setChilds(ArrayList childs) { 45 this.childs = childs; 46 } 47 50 public Object getNode() { 51 return node; 52 } 53 56 public void setNode(Object node) { 57 this.node = node; 58 } 59 62 public int getSize() { 63 return size; 64 } 65 68 public void setSize(int size) { 69 this.size = size; 70 } 71 } 72 | Popular Tags |