public static final class ImmutableToolVersionRange.Builder extends Object
ImmutableToolVersionRange.
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 |
|---|---|
ImmutableToolVersionRange |
build()
Builds a new
ImmutableToolVersionRange. |
ImmutableToolVersionRange.Builder |
from(ToolVersionRange instance)
Fill a builder with attribute values from the provided
ToolVersionRange instance. |
ImmutableToolVersionRange.Builder |
max(NumericVersion max)
Initializes the value for the
max attribute. |
ImmutableToolVersionRange.Builder |
min(NumericVersion min)
Initializes the value for the
min attribute. |
public final ImmutableToolVersionRange.Builder from(ToolVersionRange instance)
ToolVersionRange 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 invocationpublic final ImmutableToolVersionRange.Builder min(NumericVersion min)
min attribute.min - The value for minthis builder for use in a chained invocationpublic final ImmutableToolVersionRange.Builder max(NumericVersion max)
max attribute.max - The value for maxthis builder for use in a chained invocationpublic ImmutableToolVersionRange build()
ImmutableToolVersionRange.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.