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.spotify.heroic.grammar.Value.java

static ListValue list(Value... values) {
    return new ListValue(ImmutableList.copyOf(values), Context.empty());
}

From source file:com.opengamma.web.analytics.GridColumnGroups.java

GridColumnGroups(List<GridColumnGroup> columnGroups) {
    ArgumentChecker.notNull(columnGroups, "columnGroups");
    List<GridColumn> columns = Lists.newArrayList();
    for (GridColumnGroup group : columnGroups) {
        columns.addAll(group.getColumns());
    }/*from   w  w w.j a  v  a2 s .co  m*/
    _columns = Collections.unmodifiableList(columns);
    _columnGroups = ImmutableList.copyOf(columnGroups);
}

From source file:com.palantir.typescript.search.LineResult.java

public LineResult(Collection<FindReferenceMatch> matches) {
    checkNotNull(matches);

    this.matches = ImmutableList.copyOf(matches);
}

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

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

From source file:org.prebake.core.ImmutableGlobSet.java

private ImmutableGlobSet(Iterable<? extends Glob> globs) {
    snapshot = ImmutableList.copyOf(globs); // Preserve iteration order.
    for (Glob g : snapshot) {
        this.add(g);
    }/*  ww  w . ja va 2s  .  c  o  m*/
}

From source file:com.google.devtools.build.lib.events.StoredEventHandler.java

public synchronized ImmutableList<Event> getEvents() {
    return ImmutableList.copyOf(events);
}

From source file:org.retrostore.android.AppPackage.java

public AppPackage(App appData, List<MediaImage> mediaImages) {
    this.appData = appData;
    this.mediaImages = ImmutableList.copyOf(mediaImages);
}

From source file:me.gamingtest.de.Util.UUIDFetcher.java

public UUIDFetcher(List<String> names, boolean rateLimiting) {
    this.names = ImmutableList.copyOf(names);
    this.rateLimiting = rateLimiting;
}

From source file:com.google.devtools.build.xcode.plmerge.KeysToRemoveIfEmptyString.java

public KeysToRemoveIfEmptyString(String... keyNames) {
    this.keyNames = ImmutableList.copyOf(keyNames);
}

From source file:de.flapdoodle.javaparser.tree.MemberDeclaration.java

public MemberDeclaration(Marker marker, List<AbstractType> types, List<MethodDeclaration> methods) {
    super(marker);
    _methods = ImmutableList.copyOf(methods);
    _types = ImmutableList.copyOf(types);
}