Example usage for com.google.common.collect Lists asList

List of usage examples for com.google.common.collect Lists asList

Introduction

In this page you can find the example usage for com.google.common.collect Lists asList.

Prototype

public static <E> List<E> asList(@Nullable E first, @Nullable E second, E[] rest) 

Source Link

Document

Returns an unmodifiable list containing the specified first and second element, and backed by the specified array of additional elements.

Usage

From source file:com.google.caliper.runner.target.Shell.java

/** Executes the command represented by the given series of arguments. */
public Result execute(String first, String second, String... rest) {
    return execute(Lists.asList(first, second, rest));
}

From source file:org.eclipse.incquery.runtime.localsearch.operations.check.StructuralFeatureCheck.java

@Override
public List<Integer> getVariablePositions() {
    return Lists.asList(sourcePosition, targetPosition, new Integer[0]);
}

From source file:com.axelor.rpc.filter.Filter.java

public static Filter notIn(String fieldName, Object first, Object second, Object... rest) {
    return notIn(fieldName, Lists.asList(first, second, rest));
}

From source file:com.axelor.rpc.filter.Filter.java

public static Filter and(Filter first, Filter second, Filter... rest) {
    return and(Lists.asList(first, second, rest));
}

From source file:org.sonar.sslr.grammar.GrammarBuilder.java

/**
 * Creates parsing expression - "sequence".
 * See {@link #sequence(Object, Object)} for more details.
 *
 * @param e1  first sub-expression//from  w w  w  .  j av  a  2  s  .  c  o m
 * @param e2  second sub-expression
 * @param rest  rest of sub-expressions
 * @throws IllegalArgumentException if any of given arguments is not a parsing expression
 */
public final Object sequence(Object e1, Object e2, Object... rest) {
    return new SequenceExpression(convertToExpressions(Lists.asList(e1, e2, rest)));
}

From source file:com.axelor.rpc.filter.Filter.java

public static Filter or(Filter first, Filter second, Filter... rest) {
    return or(Lists.asList(first, second, rest));
}

From source file:org.eclipse.viatra.query.runtime.localsearch.operations.extend.IterateOverContainers.java

@Override
public List<Integer> getVariablePositions() {
    return Lists.asList(position, sourcePosition, new Integer[0]);
}

From source file:org.eclipse.incquery.runtime.localsearch.operations.extend.nobase.ExtendToEStructuralFeatureTarget.java

@Override
public List<Integer> getVariablePositions() {
    return Lists.asList(sourcePosition, position, new Integer[0]);
}

From source file:com.axelor.rpc.filter.Filter.java

public static Filter not(Filter first, Filter second, Filter... rest) {
    return not(Lists.asList(first, second, rest));
}

From source file:org.eclipse.incquery.runtime.localsearch.operations.extend.nobase.ExtendToEStructuralFeatureSource.java

@Override
public List<Integer> getVariablePositions() {
    return Lists.asList(position, targetPosition, new Integer[0]);
}