1 18 19 20 package sync4j.framework.core; 21 22 import java.util.*; 23 24 31 public final class CTCap 32 implements java.io.Serializable { 33 34 private ArrayList ctTypeSupported = new ArrayList(); 36 37 42 public CTCap() {} 43 44 51 public CTCap(final CTTypeSupported[] ctTypeSupported) { 52 setCTTypeSupported(ctTypeSupported); 53 } 54 55 57 62 public ArrayList getCTTypeSupported() { 63 return this.ctTypeSupported; 64 } 65 66 71 public void setCTTypeSupported(CTTypeSupported[] ctTypeSupported) { 72 73 if (ctTypeSupported == null || ctTypeSupported.length == 0) { 74 throw new IllegalArgumentException ("ctTypeSupported cannot be null"); 75 } 76 this.ctTypeSupported.clear(); 77 this.ctTypeSupported.addAll(Arrays.asList(ctTypeSupported)); 78 } 79 } | Popular Tags |