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:kn.uni.gis.dataimport.util.CPolygon.java

public CPolygon(CPoint... points) {
    super();
    this.points = ImmutableList.copyOf(points);
}

From source file:de.flapdoodle.logparser.StreamEntry.java

public StreamEntry(String message, List<String> comments) {
    _message = message;
    _comments = ImmutableList.copyOf(comments);
}

From source file:org.opendaylight.nic.compiler.api.IntentCompilerException.java

public Collection<Policy> getRelatedPolicies() {
    return ImmutableList.copyOf(relatedPolicies);
}

From source file:com.gwtplatform.processors.tools.outputter.CodeSnippet.java

public CodeSnippet(String code, Collection<String> imports) {
    this.code = code;
    this.imports = ImmutableList.copyOf(imports);
}

From source file:org.lttng.scope.tmf2.views.core.timegraph.model.render.tree.TimeGraphTreeRender.java

public TimeGraphTreeRender(List<TimeGraphTreeElement> elements) {
    fTreeElements = ImmutableList.copyOf(elements);
}

From source file:com.streamsets.datacollector.creation.PipelineStageBeans.java

public PipelineStageBeans(List<StageBean> beans) {
    this.stageBeans = ImmutableList.copyOf(beans);
}

From source file:ph.samson.maven.cpages.ConfluencePage.java

ConfluencePage(String title, String contents, List<File> attachments) {
    this.title = title;
    this.contents = contents;
    this.attachments = ImmutableList.copyOf(attachments);
}

From source file:org.gradle.api.internal.artifacts.repositories.metadata.DefaultImmutableMetadataSources.java

public DefaultImmutableMetadataSources(Iterable<MetadataSource<?>> sources) {
    this.sources = ImmutableList.copyOf(sources);
}

From source file:org.asoem.greyfish.utils.collect.ImmutableFunctionalList.java

public static <E> FunctionalList<E> copyOf(final Iterable<? extends E> components) {
    return copyOf(ImmutableList.copyOf(components));
}

From source file:com.jgaap.backend.Languages.java

private static ImmutableList<Language> loadLanguages() {
    List<Object> objects = AutoPopulate.findObjects("com.jgaap.languages", Language.class);
    for (Object tmp : AutoPopulate.findClasses("com.jgaap.generics", Language.class)) {
        objects.add(tmp);//w w w.  j a  v a 2s .c  o m
    }
    List<Language> languages = new ArrayList<Language>(objects.size());
    for (Object tmp : objects) {
        languages.add((Language) tmp);
    }
    Collections.sort(languages);
    return ImmutableList.copyOf(languages);
}