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

org.protege.owlapi.util.SaveResultsRunnable Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.protege.owlapi.util;

import java.util.concurrent.Callable;

public class SaveResultsRunnable implements Runnable {
    private Callable call;
    private X result;
    private Exception exception;
    
    public SaveResultsRunnable(Callable call) {
        this.call = call;
    }
    
    public X getResult() {
        return result;
    }
    
    public Exception getException() {
        return exception;
    }

    public void run() {
        try {
            result = call.call();
        }
        catch (Exception e) {
            exception = e;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy