@Documented @Retention(value=SOURCE) @Target(value=PACKAGE) @Repeatable(value=UncheckedFunctionalInterfaces.class) public @interface UncheckedFunctionalInterface
Example usage:
// declared in foo/package-info.java @UncheckedFunctionalInterface(ToLongFunction.class) @UncheckedFunctionalInterface(UnaryOperator.class) package foo;When used with
UncheckedFunctionalInterfaceProcessor
will generated
functional interfaces for use in lambda expressions. These new interfaces throw checked exceptions as
unchecked exceptions.UncheckedFunctionalInterfaces
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?> |
value
Values must be a type that is a functional interface.
|