public void add(StateExportItem newItem) { StateExportNode temp=first; this.count++; if(first==null) { first=new StateExportNode(newItem); return; } while(temp.next!=null) { temp=temp.next; } temp.next=new StateExportNode(newItem); }
private bool addStateExport(int stateNumber,StateExportItem newExport) { StateNode temp = first; if(stateNumber <0) return false; if(count < stateNumber ) return false; for(int i=1; i< stateNumber ;i++) temp = temp.next; temp.exports.add(newExport); return true; }
public StateExportNode(StateExportItem newItem) { next = null; data = newItem; }