@NotThreadSafe public static final class ImmutableV2Explained.Builder<T,A,B> extends Object
ImmutableV2Explained.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableV2Explained<T,A,B> |
build()
Builds a new
ImmutableV2Explained. |
ImmutableV2Explained.Builder<T,A,B> |
delegate(V2<T,A,B> delegate)
Initializes the value for the
delegate attribute. |
ImmutableV2Explained.Builder<T,A,B> |
from(V2.V2Explained<T,A,B> instance)
Fill a builder with attribute values from the provided
V2Explained instance. |
ImmutableV2Explained.Builder<T,A,B> |
humanReadable(String humanReadable)
Initializes the value for the
humanReadable attribute. |
@CanIgnoreReturnValue public final ImmutableV2Explained.Builder<T,A,B> from(V2.V2Explained<T,A,B> instance)
V2Explained instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableV2Explained.Builder<T,A,B> delegate(V2<T,A,B> delegate)
delegate attribute.delegate - The value for delegatethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableV2Explained.Builder<T,A,B> humanReadable(String humanReadable)
humanReadable attribute.humanReadable - The value for humanReadablethis builder for use in a chained invocationpublic ImmutableV2Explained<T,A,B> build()
ImmutableV2Explained.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.