public final class ImmutableGenericVersion extends Object implements Version.GenericVersion
Version.GenericVersion.
Use the builder to create immutable instances:
ImmutableGenericVersion.builder().
Use the static factory method to create immutable instances:
ImmutableGenericVersion.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableGenericVersion.Builder
Builds instances of type
ImmutableGenericVersion. |
Version.GenericVersion| Modifier and Type | Method and Description |
|---|---|
String |
asInDownloadPath() |
static ImmutableGenericVersion.Builder |
builder()
Creates a builder for
ImmutableGenericVersion. |
static ImmutableGenericVersion |
copyOf(Version.GenericVersion instance)
Creates an immutable copy of a
Version.GenericVersion value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableGenericVersion that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
asInDownloadPath. |
static ImmutableGenericVersion |
of(String asInDownloadPath)
Construct a new immutable
GenericVersion instance. |
String |
toString()
Prints the immutable value
GenericVersion with attribute values. |
ImmutableGenericVersion |
withAsInDownloadPath(String value)
Copy the current immutable object by setting a value for the
asInDownloadPath attribute. |
public String asInDownloadPath()
asInDownloadPath in interface VersionasInDownloadPath in interface Version.GenericVersionasInDownloadPath attributepublic final ImmutableGenericVersion withAsInDownloadPath(String value)
asInDownloadPath attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for asInDownloadPaththis objectpublic boolean equals(Object another)
ImmutableGenericVersion that have equal attribute values.public int hashCode()
asInDownloadPath.public String toString()
GenericVersion with attribute values.public static ImmutableGenericVersion of(String asInDownloadPath)
GenericVersion instance.public static ImmutableGenericVersion copyOf(Version.GenericVersion instance)
Version.GenericVersion 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 ImmutableGenericVersion.Builder builder()
ImmutableGenericVersion.
ImmutableGenericVersion.builder()
.asInDownloadPath(String) // required asInDownloadPath
.build();
Copyright © 2023. All rights reserved.