List of usage examples for java.util Collections unmodifiableList
public static <T> List<T> unmodifiableList(List<? extends T> list)
From source file:com.zb.app.web.tools.EnumViewTools.java
public static List<RightMenuEnum> getTourRightMenu() { List<RightMenuEnum> rightMenuEnumList = Arrays.asList(new RightMenuEnum[] { RightMenuEnum.ORDER_TOUR, RightMenuEnum.PRODUCT_TOUR, RightMenuEnum.SYSTEM_TOUR }); return Collections.unmodifiableList(rightMenuEnumList); }
From source file:de.mirkosertic.desktopsearch.QueryTokenizer.java
public List<String> getRequiredTerms() { return Collections.unmodifiableList(requiredTerms); }
From source file:net.big_oh.common.jdbc.JdbcObserverProxyStatementInvocationHandler.java
JdbcObserverProxyStatementInvocationHandler(Statement originalStatement, List<JDBCEventListener> listeners, String hardCodedSqlForStatement) { this.originalStatement = originalStatement; // Create a new list of listeners to side-step the possibility of // ConcurrentModificationException this.listeners = Collections.unmodifiableList(new ArrayList<JDBCEventListener>(listeners)); this.preparedSQLTemplate = hardCodedSqlForStatement; }
From source file:com.callidusrobotics.droptables.model.Parameter.java
@JsonProperty("values") public List<String> getValues() { return Collections.unmodifiableList(values); }
From source file:org.apache.solr.kelvin.testcases.SimpleCondition.java
public List<String> getFields() { return Collections.unmodifiableList(fields); }
From source file:org.springframework.samples.petclinic.model.Owner.java
public List<Pet> getMutableSortPets() { List<Pet> sortedPets = new ArrayList<Pet>(getPetsInternal()); PropertyComparator.sort(sortedPets, new MutableSortDefinition("name", true, true)); return Collections.unmodifiableList(sortedPets); }
From source file:org.openeos.services.ui.internal.UIDAOServiceImpl.java
@Override @Transactional(readOnly = true)/*from ww w. j a va 2s .c o m*/ public List<UIBean> list(Class<?> persistentClass, Order... orders) { Session ses = getSession(); Criteria crit = ses.createCriteria(persistentClass); IClassDefinition classDef = dictionaryService.getClassDefinition(persistentClass); for (Order order : orders) { crit.addOrder(order); } crit.addOrder(Order.asc(classDef.getIdPropertyDefinition().getName())); List<UIBean> result = new ArrayList<UIBean>(); for (Object obj : crit.list()) { Hibernate.initialize(obj); result.add(new UIBeanImpl(obj, classDef)); } return Collections.unmodifiableList(result); }
From source file:net.sf.housekeeper.domain.CategoryManager.java
/** * Returns an unmodifyable list of all root level categories. * //from ww w. j a v a2 s .co m * @return The categories. Not null. */ public List getTopLevelCategories() { return Collections.unmodifiableList(categories); }
From source file:com.anrisoftware.sscontrol.security.fail2ban.Fail2banServiceImpl.java
@Override public List<Jail> getJails() { return Collections.unmodifiableList(jails); }