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

com.github.mike10004.nativehelper.subprocess.AbstractDestroyAttempt Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
package com.github.mike10004.nativehelper.subprocess;

import static java.util.Objects.requireNonNull;

/**
 * Superclass for destroy attempts.
 */
public class AbstractDestroyAttempt implements DestroyAttempt {

    protected final DestroyResult result;
    protected final Process process;

    public AbstractDestroyAttempt(DestroyResult result, Process process) {
        this.result = requireNonNull(result);
        this.process = requireNonNull(process);
    }

    /**
     * Gets the result of the attempt.
     * @return the result
     */
    @Override
    public DestroyResult result() {
        return result;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy