List of usage examples for org.apache.commons.collections ListUtils unmodifiableList
public static List unmodifiableList(List list)
From source file:it.geosolutions.unredd.stats.impl.DataFile.java
public List getRanges() { if (rangeParser == null) { return null; } return ListUtils.unmodifiableList(rangeParser); }
From source file:it.geosolutions.geobatch.opensdi.csvingest.utils.CSVSchemaHandler.java
public List<CSVPropertyType> getTypeList() { return ListUtils.unmodifiableList(typesList); }
From source file:it.geosolutions.geobatch.opensdi.csvingest.utils.CSVSchemaHandler.java
public List<Integer> getPrimaryKeysIndexes() { return ListUtils.unmodifiableList(uniqueList); }
From source file:it.geosolutions.geobatch.opensdi.csvingest.utils.CSVSchemaHandler.java
public List<String> getHeaderList() { return ListUtils.unmodifiableList(headersList); }
From source file:it.geosolutions.geobatch.services.jmx.JMXConsumerManager.java
@Override public List<Map<String, String>> getConfigurations() { return ListUtils.unmodifiableList(configurations); }
From source file:it.geosolutions.geobatch.destination.common.utils.FeatureLoaderUtils.java
private static List<BigDecimal> loadFeatureAttributesInternal(DataStore datastore, String featureTypeName, String attribute, boolean forceLoading) { List<BigDecimal> attributes = (List<BigDecimal>) featureAttributesMap.get(featureTypeName, attribute); if (!forceLoading && attributes != null) { return ListUtils.unmodifiableList(attributes); }//from w ww . j a v a 2 s.co m attributes = new ArrayList<BigDecimal>(); FeatureIterator iter = null; Transaction transaction = null; try { transaction = new DefaultTransaction(); OutputObject tipobersObject = new OutputObject(datastore, transaction, featureTypeName, ""); FeatureCollection<SimpleFeatureType, SimpleFeature> bersaglioCollection = tipobersObject.getReader() .getFeatures(); iter = bersaglioCollection.features(); while (iter.hasNext()) { SimpleFeature sf = (SimpleFeature) iter.next(); // BigDecimal bd = (BigDecimal) sf.getAttribute("id_sostanza"); BigDecimal bd = (BigDecimal) sf.getAttribute(attribute); attributes.add(bd); } featureAttributesMap.put(featureTypeName, attribute, attributes); } catch (IOException e) { } finally { if (iter != null) { iter.close(); } if (transaction != null) { try { transaction.close(); } catch (IOException e) { LOGGER.error(e.getMessage(), e); } } } return ListUtils.unmodifiableList(attributes); }
From source file:it.geosolutions.geobatch.destination.vulnerability.TargetManager.java
public List<Double> getDistances() { if (distances == null) { return null; }//from w w w . j a v a2 s . c o m return ListUtils.unmodifiableList(Arrays.asList(distances)); }
From source file:it.geosolutions.geobatch.destination.vulnerability.TargetPropertiesLoader.java
/** * @return the allCopSuoloValues */ public List<Integer> getAllCopSuoloValues() { return ListUtils.unmodifiableList(allCopSuoloValues); }
From source file:com.tdclighthouse.commons.simpleform.html.FormItem.java
/** * @return the options//from w w w . j a va 2s. c om */ @SuppressWarnings("unchecked") public List<Option> getOptions() { return ListUtils.unmodifiableList(options); }
From source file:com.baidu.cc.ConfigLoader.java
/** * do call back action./*from www . j av a2 s. c om*/ * * @param changedConfigItems changed config item list */ protected void doCallback(List<ChangedConfigItem> changedConfigItems) { if (CollectionUtils.isEmpty(changedConfigItems)) { if (LOGGER.isInfoEnabled()) { LOGGER.info("Empty changed config items call back."); } return; } if (MapUtils.isNotEmpty(callables)) { Collection<ConfigItemChangedCallable> tmp; tmp = new ArrayList<ConfigItemChangedCallable>(callables.values()); //for safety consider List<ChangedConfigItem> changedItems = ListUtils.unmodifiableList(changedConfigItems); //do call back to each call for (ConfigItemChangedCallable configItemChangedCallable : tmp) { try { configItemChangedCallable.changed(changedItems); } catch (Exception e) { LOGGER.error(e.getMessage(), e); } } } }