List of usage examples for java.util Collections unmodifiableList
public static <T> List<T> unmodifiableList(List<? extends T> list)
From source file:jodtemplate.contenttype.ContentTypes.java
public List<DefaultElement> getDefaultElements() { return Collections.unmodifiableList(new ArrayList<>(defaultElements)); }
From source file:com.github.rvesse.airline.parser.aliases.UserAliasesSource.java
public UserAliasesSource(String filename, String prefix, String... searchLocations) { this.filename = filename; this.prefix = prefix; this.searchLocations = Collections.unmodifiableList(Arrays.asList(searchLocations)); if (StringUtils.isBlank(this.filename)) { throw new IllegalArgumentException("Filename cannot be null/empty/blank"); }//from ww w .j av a2 s .co m if (this.searchLocations.size() == 0) { throw new IllegalArgumentException("At least one search location must be specified"); } }
From source file:cz.fi.muni.pa036.airticketbooking.dao.impl.AdministratorDaoImpl.java
@Override public List<Administrator> getAll() { try {/*from ww w .j a va 2 s .c o m*/ Query q = em.createQuery("FROM Administrator"); List<Administrator> objectTemp = q.getResultList(); return Collections.unmodifiableList(objectTemp); } catch (PersistenceException | IllegalArgumentException ex) { throw new DataAccessException(ex.getMessage(), ex) { }; } }
From source file:com.frank.search.solr.core.query.result.HighlightEntry.java
/** * @return empty collection if none available *//* w ww . j ava 2 s. c o m*/ public List<Highlight> getHighlights() { return Collections.unmodifiableList(this.highlights); }
From source file:ddf.catalog.transformer.csv.common.CsvAttributeDescriptorComparator.java
/** @param attributeOrder the order in which the attributes should be output. */ CsvAttributeDescriptorComparator(List<String> attributeOrder) { this.attributeOrder = Collections.unmodifiableList(attributeOrder); }
From source file:ar.com.zauber.commons.dao.Ordering.java
/** return the orders. the returned list can't be modified */ public final List<Order> getOrders() { return Collections.unmodifiableList(orders); }
From source file:com.aliyun.openservices.tablestore.hadoop.MultiCriteria.java
public List<RangeRowQueryCriteria> getCriteria() { return Collections.unmodifiableList(criteria); }
From source file:com.subgraph.vega.internal.model.web.WebResponse.java
@Override public List<NameValuePair> getRequestParameters() { activate(ActivationPurpose.READ); return Collections.unmodifiableList(parameters); }
From source file:com.edmunds.etm.common.api.UrlToken.java
/** * Gets the list of values represented by this token. * * @return list of string values/*w ww.j a v a2s. co m*/ */ public List<String> getValues() { return Collections.unmodifiableList(values); }
From source file:com.stehno.sanctuary.core.MessageSet.java
public List<MessageItem> getMessages() { return Collections.unmodifiableList(messages); }