List of usage examples for java.util Collections unmodifiableList
public static <T> List<T> unmodifiableList(List<? extends T> list)
From source file:com.cognifide.slice.api.injector.InjectorConfig.java
InjectorConfig(final InjectorRunner runner) { // we don't allow to change the module list after creating the configuration modules = Collections.unmodifiableList(new ArrayList<Module>(runner.getModules())); name = runner.getInjectorName();//from w w w . j a v a2 s . c om applicationPath = StringUtils.defaultIfEmpty(runner.getApplicationPath(), DEFAULT_INJECTOR_PATH + name); parentName = runner.getParentName(); basePackage = runner.getBasePackage(); bundleFilter = runner.getBundleNameFilter(); listener = runner; }
From source file:jodtemplate.contenttype.ContentTypes.java
public List<OverrideElement> getOverrideElements() { return Collections.unmodifiableList(new ArrayList<>(overrideElements)); }
From source file:org.elasticsearch.client.RequestOptions.java
private RequestOptions(Builder builder) { this.headers = Collections.unmodifiableList(new ArrayList<>(builder.headers)); this.httpAsyncResponseConsumerFactory = builder.httpAsyncResponseConsumerFactory; }
From source file:ch.aonyx.broker.ib.api.account.ManagedAccountListEvent.java
public List<String> getAccounts() { return Collections.unmodifiableList( Lists.transform(Lists.newArrayList(StringUtils.split(commaSeparatedAccountList, separator)), toTrimmedStringFunction)); }
From source file:com.ok2c.lightmtp.SMTPReply.java
public SMTPReply(final int code, final SMTPCode enhancedCode, final String line) { super();//from ww w. ja va2s .c om if (code <= 0) { throw new IllegalArgumentException("Code may not be nagtive or zero"); } Args.notNull(line, "Line"); this.code = code; this.enhancedCode = enhancedCode; List<String> lines = new ArrayList<String>(); lines.add(line); this.lines = Collections.unmodifiableList(new ArrayList<String>(lines)); }
From source file:com.willowtreeapps.androidcontentprovidergenerator.model.Entity.java
public List<Field> getFields() { return Collections.unmodifiableList(mFields); }
From source file:ddf.catalog.transformer.csv.common.MetacardIterator.java
/** * @param metacard the metacard to be iterated over. * @param attributeDescriptorList the list of attributeDescriptors used to determine which * metacard attributes to return.//from w w w . jav a 2 s. c om */ MetacardIterator(final Metacard metacard, final List<AttributeDescriptor> attributeDescriptorList) { this.metacard = metacard; this.attributeDescriptorList = Collections.unmodifiableList(attributeDescriptorList); this.index = 0; }
From source file:com.ebay.jetstream.event.processor.esper.EPL.java
/** * Gets the EPL statements as a single string block, such as a CDATA block. * * @return the set of all statements, in order, each separated by semicolon and new-line. *//*from w w w. j a v a2 s . c om*/ public List<String> getEPLStatements() { return Collections.unmodifiableList(m_statements); }
From source file:org.keycloak.connections.httpclient.ProxyMappings.java
/** * Creates a {@link ProxyMappings} from the provided {@link ProxyMapping Entries}. * * @param entries//w w w . java2 s . com */ public ProxyMappings(List<ProxyMapping> entries) { this.entries = Collections.unmodifiableList(entries); }
From source file:com.anrisoftware.globalpom.exec.runcommands.RunCommands.java
public List<Object> getCommands() { return Collections.unmodifiableList(commands); }