// 
// Decompiled by Procyon v0.6.0
// 

package org.jline.console;

import java.util.function.Consumer;
import org.jline.reader.Completer;
import java.util.List;
import java.util.function.Function;

public class CommandMethods
{
    Function<CommandInput, ?> execute;
    Function<String, List<Completer>> compileCompleter;
    
    public CommandMethods(final Function<CommandInput, ?> execute, final Function<String, List<Completer>> compileCompleter) {
        this.execute = execute;
        this.compileCompleter = compileCompleter;
    }
    
    public CommandMethods(final Consumer<CommandInput> execute, final Function<String, List<Completer>> compileCompleter) {
        this.execute = (Function<CommandInput, ?>)(i -> {
            execute.accept(i);
            return null;
        });
        this.compileCompleter = compileCompleter;
    }
    
    public Function<CommandInput, ?> execute() {
        return this.execute;
    }
    
    public Function<String, List<Completer>> compileCompleter() {
        return this.compileCompleter;
    }
}
