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:com.github.jcustenborder.kafka.connect.utils.config.recommenders.CharsetRecommender.java

CharsetRecommender(Iterable<String> charsets, VisibleCallback visible) {
    this.visible = visible;
    this.charsets = ImmutableList.copyOf(charsets);
}

From source file:com.tngtech.archunit.core.domain.JavaClassList.java

JavaClassList(List<JavaClass> elements) {
    this.elements = ImmutableList.copyOf(elements);
}

From source file:com.facebook.presto.operator.exchange.BroadcastExchanger.java

public BroadcastExchanger(List<Consumer<PageReference>> buffers, LongConsumer memoryTracker) {
    this.buffers = ImmutableList.copyOf(requireNonNull(buffers, "buffers is null"));
    this.memoryTracker = requireNonNull(memoryTracker, "memoryTracker is null");
}

From source file:com.streamsets.datacollector.runner.LaneResolver.java

static List<String> getPostFixed(List<String> lanes, String postfix) {
    List<String> postFixed = new ArrayList<>(lanes.size());
    for (String lane : lanes) {
        postFixed.add(lane + postfix);//w ww  .  j a  va  2  s.  co m
    }
    return ImmutableList.copyOf(postFixed);
}

From source file:com.splicemachine.orc.metadata.RowGroupIndex.java

public RowGroupIndex(List<Integer> positions, ColumnStatistics statistics) {
    this.positions = ImmutableList.copyOf(requireNonNull(positions, "positions is null"));
    this.statistics = requireNonNull(statistics, "statistics is null");
}

From source file:com.google.googlejavaformat.FormattingError.java

public FormattingError(Iterable<FormatterDiagnostic> diagnostics) {
    super(Joiner.on("\n").join(diagnostics) + "\n");
    this.diagnostics = ImmutableList.copyOf(diagnostics);
}

From source file:com.querydsl.core.types.template.StringTemplate.java

public static StringExpression create(Template template, Object... args) {
    return new StringTemplate(template, ImmutableList.copyOf(args));
}

From source file:com.vmware.photon.controller.api.common.exceptions.external.InvalidEntityException.java

public InvalidEntityException(String message, Iterable<String> errors) {
    super(ErrorCode.INVALID_ENTITY);
    this.message = message;
    this.errors = ImmutableList.copyOf(errors);
}

From source file:com.turn.camino.lang.ast.Block.java

/**
 * Constructor//from   w  ww  .  ja va  2s  . co  m
 *
 * @param location location of expression
 * @param expressions expressions in this template
 */
public Block(Location location, List<Expression> expressions) {
    super(location);
    this.expressions = ImmutableList.copyOf(expressions);
}