
com.github.nginate.commons.lang.function.unchecked.URunnable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-lang Show documentation
Show all versions of commons-lang Show documentation
Misc utilities to hide most common boilerplate code. Requires jdk8 at least
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