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.trnltk.tokenizer.TextBlockTypeGroup.java

public TextBlockTypeGroup(List<TextBlockType> textBlockTypes) {
    this.textBlockTypes = ImmutableList.copyOf(textBlockTypes);
}

From source file:org.waveprotocol.box.common.DeltaSequence.java

/** Creates a delta sequence from contiguous deltas. */
public static DeltaSequence of(Iterable<TransformedWaveletDelta> deltas) {
    return new DeltaSequence(ImmutableList.copyOf(deltas), true);
}

From source file:com.axemblr.service.cm.models.clusters.ActivityList.java

@JsonCreator
public ActivityList(@JsonProperty("items") List<Activity> items) {
    this.items = (items == null) ? ImmutableList.<Activity>of() : ImmutableList.copyOf(items);
}

From source file:org.jclouds.abiquo.domain.util.LinkUtils.java

/**
 * Filter the given link list and return only the links that point to a NIC.
 * //from  www .  j  a  v  a 2  s.co  m
 * @param links
 *           The list with the links to filter.
 * @return A list with all links that point to a NIC.
 */
public static List<RESTLink> filterNicLinks(final List<RESTLink> links) {
    return ImmutableList.copyOf(filter(links, LinkPredicates.isNic()));
}

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

public TimeGraphTreeElement(String name, List<TimeGraphTreeElement> children) {
    fName = name;
    fChildElements = ImmutableList.copyOf(children);
}

From source file:com.amazonaws.services.kinesis.stormspout.state.zookeeper.ShardListV0.java

public ShardListV0(List<String> shards) {
    this.shards = ImmutableList.copyOf(shards);
}

From source file:com.yahoo.yqlplus.engine.internal.plan.ast.ExprScope.java

public OperatorNode<FunctionOperator> createFunction(OperatorNode<PhysicalExprOperator> expr) {
    return OperatorNode.create(expr.getLocation(), FunctionOperator.FUNCTION,
            ImmutableList.copyOf(locals.keySet()), expr);
}

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

public Args(String[] args) {
    this.args = ImmutableList.copyOf(args);
}

From source file:com.b2international.snowowl.snomed.datastore.id.domain.SctIds.java

public SctIds(Collection<SctId> componentIds) {
    super(ImmutableList.copyOf(componentIds));
}

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

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