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

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

There is a newer version: 1.31
Show newest version
package com.cloudbees.groovy.cps.impl;

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

/**
 * [a:b, c:d, e:f, ...]
 *
 * @author Kohsuke Kawaguchi
 */
public class MapBlock extends CollectionLiteralBlock {
    public MapBlock(Block... args) {
        super(args);
    }

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

    private static final long serialVersionUID = 1L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy