@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableEntry extends FileSet.Entry
FileSet.Entry.
Use the builder to create immutable instances:
ImmutableEntry.builder().
Use the static factory method to create immutable instances:
ImmutableEntry.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEntry.Builder
Builds instances of type
ImmutableEntry. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableEntry.Builder |
builder()
Creates a builder for
ImmutableEntry. |
static ImmutableEntry |
copyOf(FileSet.Entry instance)
Creates an immutable copy of a
FileSet.Entry value. |
String |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEntry that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
type, destination, uncompiledMatchingPattern. |
static ImmutableEntry |
of(FileType type,
String destination,
UncompiledPattern uncompiledMatchingPattern)
Construct a new immutable
Entry instance. |
String |
toString()
Prints the immutable value
Entry with attribute values. |
FileType |
type() |
protected UncompiledPattern |
uncompiledMatchingPattern() |
ImmutableEntry |
withDestination(String value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableEntry |
withType(FileType value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableEntry |
withUncompiledMatchingPattern(UncompiledPattern value)
Copy the current immutable object by setting a value for the
uncompiledMatchingPattern attribute. |
matchingPatternpublic FileType type()
type in class FileSet.Entrytype attributepublic String destination()
destination in class FileSet.Entrydestination attributeprotected UncompiledPattern uncompiledMatchingPattern()
uncompiledMatchingPattern in class FileSet.EntryuncompiledMatchingPattern attributepublic final ImmutableEntry withType(FileType value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic final ImmutableEntry withDestination(String value)
destination attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for destinationthis objectpublic final ImmutableEntry withUncompiledMatchingPattern(UncompiledPattern value)
uncompiledMatchingPattern attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for uncompiledMatchingPatternthis objectpublic boolean equals(Object another)
ImmutableEntry that have equal attribute values.public int hashCode()
type, destination, uncompiledMatchingPattern.public String toString()
Entry with attribute values.public static ImmutableEntry of(FileType type, String destination, UncompiledPattern uncompiledMatchingPattern)
Entry instance.type - The value for the type attributedestination - The value for the destination attributeuncompiledMatchingPattern - The value for the uncompiledMatchingPattern attributepublic static ImmutableEntry copyOf(FileSet.Entry instance)
FileSet.Entry value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableEntry.Builder builder()
ImmutableEntry.
ImmutableEntry.builder()
.type(de.flapdoodle.embed.process.config.store.FileType) // required type
.destination(String) // required destination
.uncompiledMatchingPattern(de.flapdoodle.embed.process.config.store.UncompiledPattern) // required uncompiledMatchingPattern
.build();
Copyright © 2020. All rights reserved.