public static final class ImmutableEntry.Builder extends Object
ImmutableEntry.
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 |
|---|---|
ImmutableEntry |
build()
Builds a new
ImmutableEntry. |
ImmutableEntry.Builder |
destination(String destination)
Initializes the value for the
destination attribute. |
ImmutableEntry.Builder |
from(FileSet.Entry instance)
Fill a builder with attribute values from the provided
Entry instance. |
ImmutableEntry.Builder |
type(FileType type)
Initializes the value for the
type attribute. |
ImmutableEntry.Builder |
uncompiledMatchingPattern(UncompiledPattern uncompiledMatchingPattern)
Initializes the value for the
uncompiledMatchingPattern attribute. |
public final ImmutableEntry.Builder from(FileSet.Entry instance)
Entry 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 ImmutableEntry.Builder type(FileType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final ImmutableEntry.Builder destination(String destination)
destination attribute.destination - The value for destinationthis builder for use in a chained invocationpublic final ImmutableEntry.Builder uncompiledMatchingPattern(UncompiledPattern uncompiledMatchingPattern)
uncompiledMatchingPattern attribute.uncompiledMatchingPattern - The value for uncompiledMatchingPatternthis builder for use in a chained invocationpublic ImmutableEntry build()
ImmutableEntry.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.