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

com.tinkerpop.gremlin.groovy.console.PromptClosure Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package com.tinkerpop.gremlin.groovy.console;

import groovy.lang.Closure;

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public class PromptClosure extends Closure {

    private final String inputPrompt;

    public PromptClosure(final Object owner, final String inputPrompt) {
        super(owner);
        this.inputPrompt = inputPrompt;
    }

    public Object call() {
        return this.inputPrompt;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy