Automatic method declaration for functional interfaces
Nir Lisker
nlisker at gmail.com
Sun Jan 2 23:48:53 UTC 2022
Hi,
Many @FunctionalInterface interfaces declare explicitly what their
functional method is, For example, the java.util.function interfaces. I was
wondering if the docs pointing out which is the functional method
automatically would be of any use.
If so, the question becomes what is the best way. Some ideas:
1. An auto-generated comment on the bottom of the interface doc like
Consumer<T> does?
2. Putting it next to the @FunctionalInterface in the declaration on top
(though it might be confusing).
3. Some highlight to the method in the method summary table.
Happy new year,
Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/javadoc-dev/attachments/20220103/f77ecf01/attachment.htm>
More information about the javadoc-dev
mailing list