/**
* Returns a stream consisting of the elements of this stream, sorted
* according to natural order. If the elements of this stream are not
* {@code Comparable}, a {@code java.lang.ClassCastException} may be thrown
* when the terminal operation is executed.
*
* <p>For ordered streams, the sort is stable. For unordered streams, no
* stability guarantees are made.
*
* <p>This is a <a href="package-summary.html#StreamOps">stateful
* intermediate operation</a>.
*
* @return the new stream
*/
Stream<T> sorted();
java.util.stream.Stream#sorted()But what I want to focus on is Javadoc.
I just glanced at Javadoc and noticed that I didn't write the closing tag for the \ <P \> tag.
Javadoc can be written richly in HTML, but the dilemma was that the more markup it was, the harder it was for the coder to read.
I thought this way of writing should be refreshing.
Personally, it was a scale from my eyes, so it's my recent boom.
Recommended Posts