public void setSwingDataCollection(Collection<ICFBamServerListFuncObj> value) { final String S_ProcName = "setSwingDataCollection"; swingDataCollection = value; if (swingDataCollection == null) { arrayOfServerListFunc = new ICFBamServerListFuncObj[0]; } else { int len = value.size(); arrayOfServerListFunc = new ICFBamServerListFuncObj[len]; Iterator<ICFBamServerListFuncObj> iter = swingDataCollection.iterator(); int idx = 0; while (iter.hasNext() && (idx < len)) { arrayOfServerListFunc[idx++] = iter.next(); } if (idx < len) { throw CFLib.getDefaultExceptionFactory() .newRuntimeException( getClass(), S_ProcName, "Collection iterator did not fully populate the array copy"); } if (iter.hasNext()) { throw CFLib.getDefaultExceptionFactory() .newRuntimeException( getClass(), S_ProcName, "Collection iterator had left over items when done populating array copy"); } Arrays.sort(arrayOfServerListFunc, compareServerListFuncByQualName); } PickerTableModel tblDataModel = getDataModel(); if (tblDataModel != null) { tblDataModel.fireTableDataChanged(); } }
public CFBamRamRelationCursor( CFBamAuthorization argAuthorization, CFBamRamSchema argSchema, Collection<CFBamRelationBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public void reset() { super.reset(); cursor = values.iterator(); }