List of usage examples for java.util Collections unmodifiableList
public static <T> List<T> unmodifiableList(List<? extends T> list)
From source file:com.mmj.app.web.tools.EnumViewTools.java
public static List<SubjectEnum> getAllSubjectMenu() { if (subjectEnumList == null) { subjectEnumList = new ArrayList<SubjectEnum>(); for (SubjectEnum _enum : SubjectEnum.values()) { subjectEnumList.add(_enum); }/* w w w . ja va 2 s .c o m*/ subjectEnumList = Collections.unmodifiableList(subjectEnumList); } return subjectEnumList; }
From source file:com.sinnerschrader.s2b.accounttool.logic.component.licences.Dependency.java
Dependency(String groupId, String artifactId, String version, List<License> licenses) { this.artifactId = artifactId; this.groupId = groupId; this.version = version; this.licenses = Collections.unmodifiableList(licenses); }
From source file:Main.java
/** * @return an <b>UNMODIFIABLE</b> List<T> *//*from ww w. j a va2s .c o m*/ @SafeVarargs public static <T> List<T> list(T... elements) { return Collections.unmodifiableList(Arrays.asList(elements)); }
From source file:com.zb.app.web.tools.EnumViewTools.java
public static List<TheSidebarEnum> getallTheSidebar() { if (theSidebarEnumList == null) { theSidebarEnumList = new ArrayList<TheSidebarEnum>(); for (TheSidebarEnum _enum : TheSidebarEnum.values()) { theSidebarEnumList.add(_enum); }/*from w w w . j a v a 2 s. c o m*/ theSidebarEnumList = Collections.unmodifiableList(theSidebarEnumList); } return theSidebarEnumList; }
From source file:edu.umd.cfar.lamp.chronicle.DefaultChronicleDataModel.java
public Collection getTimeLines() { return Collections.unmodifiableList(timeLines); }
From source file:edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluderListBasic.java
public SearchIndexExcluderListBasic(Collection<? extends SearchIndexExcluder> excluders) { this.excluders = Collections.unmodifiableList(new ArrayList<>(excluders)); }
From source file:com.pactera.pdts.domain.model.hotel.HotelInfo.java
public List<String> hotelers() { return Collections.unmodifiableList(hotelers); }
From source file:br.com.hyperclass.snackbar.restapi.wrapper.ProductsWrapper.java
public List<Product> getProducts() { return Collections.unmodifiableList(products); }
From source file:com.cloudera.livy.rsc.driver.StatementState.java
static void put(StatementState key, Map<StatementState, List<StatementState>> map, StatementState... values) { map.put(key, Collections.unmodifiableList(Arrays.asList(values))); }
From source file:edu.coeia.reports.IndexUtil.java
public static List<Case> getAllCases() throws FileNotFoundException, IOException, ClassNotFoundException { return Collections.unmodifiableList(ApplicationManager.Manager.getCases()); }