All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudbees.groovy.cps.impl.ListBlock Maven / Gradle / Ivy

package com.cloudbees.groovy.cps.impl;

import com.cloudbees.groovy.cps.Block;
import org.codehaus.groovy.runtime.InvokerHelper;

/**
 * [a,b,c,d] to list.
 *
 * @author Kohsuke Kawaguchi
 */
public class ListBlock extends CollectionLiteralBlock {
    public ListBlock(Block... args) {
        super(args);
    }

    @Override
    protected Object toCollection(Object[] result) {
        return InvokerHelper.createList(result);
    }

    private static final long serialVersionUID = 1L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy