public final class ImmutableUrlTemplatePackageFinder extends UrlTemplatePackageFinder
UrlTemplatePackageFinder.
Use the builder to create immutable instances:
ImmutableUrlTemplatePackageFinder.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableUrlTemplatePackageFinder.Builder
Builds instances of type
ImmutableUrlTemplatePackageFinder. |
PackageFinder.FailWithMessage| Modifier and Type | Method and Description |
|---|---|
protected de.flapdoodle.embed.process.distribution.ArchiveType |
archiveType() |
static ImmutableUrlTemplatePackageFinder.Builder |
builder()
Creates a builder for
ImmutableUrlTemplatePackageFinder. |
static ImmutableUrlTemplatePackageFinder |
copyOf(UrlTemplatePackageFinder instance)
Creates an immutable copy of a
UrlTemplatePackageFinder value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableUrlTemplatePackageFinder that have equal attribute values. |
protected de.flapdoodle.embed.process.config.store.FileSet |
fileSet() |
int |
hashCode()
Computes a hash code from attributes:
archiveType, fileSet, urlTemplate, isDevVersion. |
protected boolean |
isDevVersion() |
String |
toString()
Prints the immutable value
UrlTemplatePackageFinder with attribute values. |
ImmutableUrlTemplatePackageFinder |
withArchiveType(de.flapdoodle.embed.process.distribution.ArchiveType value)
Copy the current immutable object by setting a value for the
archiveType attribute. |
ImmutableUrlTemplatePackageFinder |
withFileSet(de.flapdoodle.embed.process.config.store.FileSet value)
Copy the current immutable object by setting a value for the
fileSet attribute. |
ImmutableUrlTemplatePackageFinder |
withIsDevVersion(boolean value)
Copy the current immutable object by setting a value for the
isDevVersion attribute. |
ImmutableUrlTemplatePackageFinder |
withUrlTemplate(String value)
Copy the current immutable object by setting a value for the
urlTemplate attribute. |
explain, packageForclone, finalize, getClass, notify, notifyAll, wait, wait, waitfailWithMessageprotected de.flapdoodle.embed.process.distribution.ArchiveType archiveType()
archiveType in class UrlTemplatePackageFinderarchiveType attributeprotected de.flapdoodle.embed.process.config.store.FileSet fileSet()
fileSet in class UrlTemplatePackageFinderfileSet attributeprotected boolean isDevVersion()
isDevVersion in class UrlTemplatePackageFinderisDevVersion attributepublic final ImmutableUrlTemplatePackageFinder withArchiveType(de.flapdoodle.embed.process.distribution.ArchiveType value)
archiveType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for archiveTypethis objectpublic final ImmutableUrlTemplatePackageFinder withFileSet(de.flapdoodle.embed.process.config.store.FileSet value)
fileSet attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for fileSetthis objectpublic final ImmutableUrlTemplatePackageFinder withUrlTemplate(String value)
urlTemplate attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for urlTemplatethis objectpublic final ImmutableUrlTemplatePackageFinder withIsDevVersion(boolean value)
isDevVersion attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isDevVersionthis objectpublic boolean equals(Object another)
ImmutableUrlTemplatePackageFinder that have equal attribute values.public int hashCode()
archiveType, fileSet, urlTemplate, isDevVersion.public String toString()
UrlTemplatePackageFinder with attribute values.public static ImmutableUrlTemplatePackageFinder copyOf(UrlTemplatePackageFinder instance)
UrlTemplatePackageFinder 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 ImmutableUrlTemplatePackageFinder.Builder builder()
ImmutableUrlTemplatePackageFinder.
ImmutableUrlTemplatePackageFinder.builder()
.archiveType(de.flapdoodle.embed.process.distribution.ArchiveType) // required archiveType
.fileSet(de.flapdoodle.embed.process.config.store.FileSet) // required fileSet
.urlTemplate(String) // required urlTemplate
.isDevVersion(boolean) // optional isDevVersion
.build();
Copyright © 2023. All rights reserved.