public void setSwingDataCollection(Collection<ICFFreeSwitchFSSFProfileAliasObj> value) { final String S_ProcName = "setSwingDataCollection"; swingDataCollection = value; if (swingDataCollection == null) { arrayOfFSSFProfileAlias = new ICFFreeSwitchFSSFProfileAliasObj[0]; } else { int len = value.size(); arrayOfFSSFProfileAlias = new ICFFreeSwitchFSSFProfileAliasObj[len]; Iterator<ICFFreeSwitchFSSFProfileAliasObj> iter = swingDataCollection.iterator(); int idx = 0; while (iter.hasNext() && (idx < len)) { arrayOfFSSFProfileAlias[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(arrayOfFSSFProfileAlias, compareFSSFProfileAliasByQualName); } PickerTableModel tblDataModel = getDataModel(); if (tblDataModel != null) { tblDataModel.fireTableDataChanged(); } }
public CFFreeSwitchRamFSSFProfileDomainCursor( CFSecurityAuthorization argAuthorization, ICFFreeSwitchSchema argSchema, Collection<CFFreeSwitchFSSFProfileDomainBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }