Class TextDelta.Builder
-
- All Implemented Interfaces:
public final class TextDelta.Builder
A builder for TextDelta.
-
-
Method Summary
Modifier and Type Method Description final TextDelta.Builder
annotations(List<AnnotationDelta> annotations)
final TextDelta.Builder
annotations(JsonField<List<AnnotationDelta>> annotations)
Sets Builder.annotations to an arbitrary JSON value. final TextDelta.Builder
addAnnotation(AnnotationDelta annotation)
Adds a single AnnotationDelta to annotations. final TextDelta.Builder
addAnnotation(FileCitationDeltaAnnotation fileCitation)
Alias for calling addAnnotation with AnnotationDelta.ofFileCitation(fileCitation)
.final TextDelta.Builder
addAnnotation(FilePathDeltaAnnotation filePath)
Alias for calling addAnnotation with AnnotationDelta.ofFilePath(filePath)
.final TextDelta.Builder
addFileCitationAnnotation(Long index)
Alias for calling addAnnotation with the following: FileCitationDeltaAnnotation.builder() .index(index) .build()
final TextDelta.Builder
addFilePathAnnotation(Long index)
Alias for calling addAnnotation with the following: FilePathDeltaAnnotation.builder() .index(index) .build()
final TextDelta.Builder
value(String value)
The data that makes up the text. final TextDelta.Builder
value(JsonField<String> value)
Sets Builder.value to an arbitrary JSON value. final TextDelta.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final TextDelta.Builder
putAdditionalProperty(String key, JsonValue value)
final TextDelta.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final TextDelta.Builder
removeAdditionalProperty(String key)
final TextDelta.Builder
removeAllAdditionalProperties(Set<String> keys)
final TextDelta
build()
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)
-
-
-
-