
uk.kludje.fn.lang.UIterable Maven / Gradle / Ivy
/*Generated file; do not edit*/
package uk.kludje.fn.lang;
/**
* A functional interface for handling checked exceptions.
* See parent type for intent.
*/
@java.lang.FunctionalInterface
@javax.annotation.Generated("uk.kludje.annotation.processor.UncheckedFunctionalInterfaceProcessor")
public interface UIterable extends java.lang.Iterable {
/**
* Invokes {@code java.util.Iterator $iterator()}.
* Throws anything thrown by {@code java.util.Iterator $iterator()}.
*/
default java.util.Iterator iterator() {
try {
return $iterator();
} catch (Throwable throwable) {
throw uk.kludje.Exceptions.throwChecked(throwable);
}
}
java.util.Iterator $iterator() throws Throwable;
/**
* Convenience method as an alternative to casting.
*
* @param t the unchecked type
* @return t
*/
public static UIterable asUIterable(UIterable t) {
return t;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy