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

com.github.nginate.commons.lang.function.unchecked.URunnable Maven / Gradle / Ivy

The newest version!
/**
 * Copyright © 2016
 * Maksim Lozbin 
 * Oleksii Ihnachuk 
 *
 * This work is free. You can redistribute it and/or modify it under the
 * terms of the Do What The Fuck You Want To Public License, Version 2,
 * as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
 */
package com.github.nginate.commons.lang.function.unchecked;

/**
 * Default stream API can't handle checked exceptions in functional call, because those interfaces do not throw checked
 * exceptions. This one allows you to say hello to functional programming with old-fashioned checked exceptions
 *
 * @since 1.0
 */
@FunctionalInterface
public interface URunnable {
    /**
     * Simple runnable that is allowed to throw checked exception
     * @throws Exception any checked exception
     */
    void run() throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy