Example usage for com.google.common.reflect Invokable isVarArgs

List of usage examples for com.google.common.reflect Invokable isVarArgs

Introduction

In this page you can find the example usage for com.google.common.reflect Invokable isVarArgs.

Prototype

public abstract boolean isVarArgs();

Source Link

Document

Returns true if this was declared to take a variable number of arguments.

Usage

From source file:org.jclouds.reflect.Invocation.java

/**
 * invocation without arguments./*  w w w  . j ava 2s  . com*/
 * 
 * @throws IllegalArgumentException
 *            if in invokable requires arguments
 */
public static Invocation create(Invokable<?, ?> invokable) {
    checkArgument(
            invokable.getParameters().size() == 0
                    || (invokable.getParameters().size() == 1 && invokable.isVarArgs()),
            "please specify arguments to %s", invokable);
    return create(invokable, ImmutableList.of());
}