List of usage examples for java.util Collections unmodifiableList
public static <T> List<T> unmodifiableList(List<? extends T> list)
From source file:com.anrisoftware.sscontrol.dhclient.internal.RequestsStatementImpl.java
@Override public List<OptionDeclaration> getRequests() { return Collections.unmodifiableList(options); }
From source file:net.dv8tion.jda.client.entities.impl.JDAClientImpl.java
@Override public List<Relationship> getRelationships() { return Collections.unmodifiableList(new ArrayList<>(relationships.valueCollection())); }
From source file:com.tyro.oss.pact.spring4.pact.model.Pact.java
public List<Interaction> getInteractions() { if (interactions != null) { return Collections.unmodifiableList(interactions); }//from w w w . j a v a2s . c om return Collections.EMPTY_LIST; }
From source file:de.iteratec.iteraplan.presentation.dialog.common.model.RoutingDatasourceComponentModel.java
public List<DataSource> getAvailableDataSources() { List<DataSource> availableDataSources; List<DataSource> list = new ArrayList<DataSource>(); DataSource ds = new DataSource(); ds.setKey(Constants.MASTER_DATA_SOURCE); list.add(ds);/*from w ww .j a va 2 s . co m*/ list.addAll(SpringServiceFactory.getDataSourceService().loadDataSources()); availableDataSources = Collections.unmodifiableList(list); return availableDataSources; }
From source file:org.impalaframework.extension.mvc.annotation.handler.AnnotationHandlerMethodResolver.java
public void init() { List<Annotation> handlerAnnotations = new ArrayList<Annotation>(); final Annotation[] annotations = handlerClass.getAnnotations(); for (Annotation annotation : annotations) { if (annotation.annotationType().getAnnotation(Handler.class) != null) { handlerAnnotations.add(annotation); }// w w w .j ava2s .com } this.handlerAnnotations = Collections.unmodifiableList(handlerAnnotations); }
From source file:de.xirp.profile.CommunicationProtocol.java
/** * Returns a list of mappings between the data from the robot and * the data for the datapool./*from ww w . j av a2 s .co m*/ * * @return An unmodifiable list with {@link CommunicationDatum}. */ @XmlTransient public List<CommunicationDatum> getDates() { return Collections.unmodifiableList(data); }
From source file:info.evanchik.eclipse.karaf.core.features.Feature.java
@SuppressWarnings("unchecked") public List<Bundle> getBundles() { final List<Bundle> rawList = new ArrayList<Bundle>(); final List<Bundle> transformedList = TransformedList.decorate(rawList, new ElementTransformer()); transformedList.addAll(element.getChildren()); return Collections .unmodifiableList(KarafCorePluginUtils.filterList(transformedList, new BundleOnlyPredicate())); }
From source file:cc.warlock.core.stormfront.xml.StormFrontElement.java
public List<StormFrontAttribute> attributes() { return Collections.unmodifiableList(attributes.getList()); }
From source file:org.apache.solr.kelvin.testcases.SimpleCondition.java
public List<String> getCorrectValuesList() { return Collections.unmodifiableList(correctValuesList); }