public static interface Span.Builder extends SdkPojo, CopyableBuilder<Span.Builder,Span>
| Modifier and Type | Method and Description |
|---|---|
default Span.Builder |
end(Consumer<Position.Builder> end)
The end position of the span (exclusive).
|
Span.Builder |
end(Position end)
The end position of the span (exclusive).
|
default Span.Builder |
start(Consumer<Position.Builder> start)
The start position of the span (inclusive).
|
Span.Builder |
start(Position start)
The start position of the span (inclusive).
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSpan.Builder start(Position start)
The start position of the span (inclusive).
start - The start position of the span (inclusive).default Span.Builder start(Consumer<Position.Builder> start)
The start position of the span (inclusive).
This is a convenience method that creates an instance of thePosition.Builder avoiding the need to
create one manually via Position.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to start(Position).
start - a consumer that will call methods on Position.Builderstart(Position)Span.Builder end(Position end)
The end position of the span (exclusive).
end - The end position of the span (exclusive).default Span.Builder end(Consumer<Position.Builder> end)
The end position of the span (exclusive).
This is a convenience method that creates an instance of thePosition.Builder avoiding the need to
create one manually via Position.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to end(Position).
end - a consumer that will call methods on Position.Builderend(Position)Copyright © 2022. All rights reserved.