Example usage for com.google.common.collect ImmutableList copyOf

List of usage examples for com.google.common.collect ImmutableList copyOf

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableList copyOf.

Prototype

public static <E> ImmutableList<E> copyOf(E[] elements) 

Source Link

Usage

From source file:org.mule.config.spring.CompositeOptionalObjectsController.java

public CompositeOptionalObjectsController(OptionalObjectsController... controllers) {
    checkArgument(!ArrayUtils.isEmpty(controllers), "cannot compose empty controllers list");
    this.controllers = ImmutableList.copyOf(controllers);
}

From source file:co.cask.cdap.logging.filter.OrFilter.java

public OrFilter(List<? extends Filter> expressions) {
    this.expressions = ImmutableList.copyOf(expressions);
}

From source file:com.b2international.snowowl.snomed.api.rest.domain.SnomedConceptDescriptions.java

public static SnomedConceptDescriptions of(SnomedDescriptions descriptions) {
    SnomedConceptDescriptions result = new SnomedConceptDescriptions(descriptions.getSearchAfter(),
            descriptions.getLimit(), descriptions.getTotal());
    result.setConceptDescriptions(ImmutableList.copyOf(descriptions.getItems()));
    return result;
}

From source file:br.com.objectos.comuns.cli.Args.java

private Args(List<String> args) {
    this.args = ImmutableList.copyOf(args);
}

From source file:org.gradle.internal.resolve.result.DefaultResourceAwareResolveResult.java

public List<String> getAttempted() {
    return ImmutableList.copyOf(attempted);
}

From source file:com.netflix.servo.publish.MockMetricPoller.java

public void setMetrics(List<Metric> metrics) {
    this.metrics = ImmutableList.copyOf(metrics);
}

From source file:org.apache.beam.runners.core.triggers.AfterAllStateMachine.java

public static OnceTriggerStateMachine of(Iterable<? extends TriggerStateMachine> triggers) {
    return new AfterAllStateMachine(ImmutableList.copyOf(triggers));
}

From source file:org.eclipse.mylyn.internal.wikitext.commonmark.inlines.InlinesSubstitution.java

public InlinesSubstitution(Inline first, Inline last, List<Inline> substitution) {
    this.first = checkNotNull(first);
    this.last = checkNotNull(last);
    this.substitution = ImmutableList.copyOf(substitution);
}

From source file:de.flapdoodle.logparser.stacktrace.ExceptionAndMessage.java

public ExceptionAndMessage(String exception, List<String> messages) {
    _exception = exception;
    _messages = ImmutableList.copyOf(messages);
}

From source file:co.cask.cdap.logging.filter.AndFilter.java

public AndFilter(List<? extends Filter> expressions) {
    this.expressions = ImmutableList.copyOf(expressions);
}