Class TextDelta.Builder
-
- All Implemented Interfaces:
public final class TextDelta.BuilderA builder for TextDelta.
-
-
Method Summary
Modifier and Type Method Description final TextDelta.Builderannotations(List<AnnotationDelta> annotations)final TextDelta.Builderannotations(JsonField<List<AnnotationDelta>> annotations)Sets Builder.annotations to an arbitrary JSON value. final TextDelta.BuilderaddAnnotation(AnnotationDelta annotation)Adds a single AnnotationDelta to annotations. final TextDelta.BuilderaddAnnotation(FileCitationDeltaAnnotation fileCitation)Alias for calling addAnnotation with AnnotationDelta.ofFileCitation(fileCitation).final TextDelta.BuilderaddAnnotation(FilePathDeltaAnnotation filePath)Alias for calling addAnnotation with AnnotationDelta.ofFilePath(filePath).final TextDelta.BuilderaddFileCitationAnnotation(Long index)Alias for calling addAnnotation with the following: FileCitationDeltaAnnotation.builder() .index(index) .build()final TextDelta.BuilderaddFilePathAnnotation(Long index)Alias for calling addAnnotation with the following: FilePathDeltaAnnotation.builder() .index(index) .build()final TextDelta.Buildervalue(String value)The data that makes up the text. final TextDelta.Buildervalue(JsonField<String> value)Sets Builder.value to an arbitrary JSON value. final TextDelta.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final TextDelta.BuilderputAdditionalProperty(String key, JsonValue value)final TextDelta.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final TextDelta.BuilderremoveAdditionalProperty(String key)final TextDelta.BuilderremoveAllAdditionalProperties(Set<String> keys)final TextDeltabuild()Returns an immutable instance of TextDelta. -
-
Method Detail
-
annotations
final TextDelta.Builder annotations(List<AnnotationDelta> annotations)
-
annotations
final TextDelta.Builder annotations(JsonField<List<AnnotationDelta>> annotations)
Sets Builder.annotations to an arbitrary JSON value.
You should usually call Builder.annotations with a well-typed
List<AnnotationDelta>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAnnotation
final TextDelta.Builder addAnnotation(AnnotationDelta annotation)
Adds a single AnnotationDelta to annotations.
-
addAnnotation
final TextDelta.Builder addAnnotation(FileCitationDeltaAnnotation fileCitation)
Alias for calling addAnnotation with
AnnotationDelta.ofFileCitation(fileCitation).
-
addAnnotation
final TextDelta.Builder addAnnotation(FilePathDeltaAnnotation filePath)
Alias for calling addAnnotation with
AnnotationDelta.ofFilePath(filePath).
-
addFileCitationAnnotation
final TextDelta.Builder addFileCitationAnnotation(Long index)
Alias for calling addAnnotation with the following:
FileCitationDeltaAnnotation.builder() .index(index) .build()
-
addFilePathAnnotation
final TextDelta.Builder addFilePathAnnotation(Long index)
Alias for calling addAnnotation with the following:
FilePathDeltaAnnotation.builder() .index(index) .build()
-
value
final TextDelta.Builder value(String value)
The data that makes up the text.
-
value
final TextDelta.Builder value(JsonField<String> value)
Sets Builder.value to an arbitrary JSON value.
You should usually call Builder.value with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TextDelta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TextDelta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TextDelta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TextDelta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TextDelta.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-