Javadoc comments¶
Comments are read from the compiler’s comment trees and rendered as native Sphinx content, so your theme styles them like any other page. Source comments are never interpreted as reStructuredText, and no raw HTML is emitted.
Parameters, returns and exceptions¶
@param, @return and @throws become fields. Type parameters get their own
field.
/** Builds a generic index.
* @param <T> comparable numeric key
* @param values input values
* @param fallback default entries
* @return grouped entries
*/
public <T extends Number & Comparable<T>> Map<T, List<? extends CharSequence>> buildIndex(
List<? extends T> values, Map<T, List<? extends CharSequence>> fallback) { return fallback; }
- public <T extends Number & Comparable<T>> Map<T, List<? extends CharSequence>> buildIndex(List<? extends T> values, Map<T, List<? extends CharSequence>> fallback)[source]
Builds a generic index.
- Type parameters:
<T> – comparable numeric key
- Parameters:
values – input values
fallback – default entries
- Returns:
grouped entries
API and implementation notes¶
The JDK’s @apiNote, @implSpec and @implNote tags use the standard
doclet’s headings. @author and @version are left out, as the standard doclet
does by default.
/** Transforms a value twice.
* @apiNote Use this when one pass is not enough.
* @implSpec The default implementation calls {@link #convert(Object)} twice.
* @implNote This implementation does not cache the first result.
* @param input the value to transform
* @return the twice transformed value
*/
default T twice(T input) {
- public default T twice(T input)[source]
Transforms a value twice.
- API Note:
Use this when one pass is not enough.
- Implementation Requirements:
The default implementation calls
#convert(Object)twice.- Implementation Note:
This implementation does not cache the first result.
- Parameters:
input – the value to transform
- Returns:
the twice transformed value
Deprecation¶
@deprecated produces the same notice as Sphinx’s deprecated directive, and
the annotation stays in the signature.
/** Old entry point.
* @deprecated Use {@link #convert(int)}.
*/
@Deprecated(since="1.0", forRemoval=true) public void old() {}
- @Deprecated(since="1.0", forRemoval=true) public void old()[source]
Deprecated: Use
#convert(int).Old entry point.