addAnnotation

public final TextContent.Builder addAnnotation(Annotation annotation)

Adds a single Annotation to annotations.

Throws

if the field was previously set to a non-list.


public final TextContent.Builder addAnnotation(UrlCitation urlCitation)

Alias for calling addAnnotation with Annotation.ofUrlCitation(urlCitation).


public final TextContent.Builder addAnnotation(FileCitation fileCitation)

Alias for calling addAnnotation with Annotation.ofFileCitation(fileCitation).


public final TextContent.Builder addAnnotation(PlaceCitation placeCitation)

Alias for calling addAnnotation with Annotation.ofPlaceCitation(placeCitation).