@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCamelCatalogSpec extends Object implements CamelCatalogSpec
CamelCatalogSpec.
Use the builder to create immutable instances:
new CamelCatalogSpec.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCamelCatalogSpec.Builder
Builds instances of type
ImmutableCamelCatalogSpec. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCamelCatalogSpec |
copyOf(CamelCatalogSpec instance)
Creates an immutable copy of a
CamelCatalogSpec value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCamelCatalogSpec that have equal attribute values. |
SortedMap<String,CamelArtifact> |
getArtifacts() |
String |
getRuntimeVersion() |
String |
getVersion() |
int |
hashCode()
Computes a hash code from attributes:
version, runtimeVersion, artifacts. |
String |
toString()
Prints the immutable value
CamelCatalogSpec with attribute values. |
ImmutableCamelCatalogSpec |
withArtifacts(SortedMap<String,CamelArtifact> value)
Copy the current immutable object by setting a value for the
artifacts attribute. |
ImmutableCamelCatalogSpec |
withRuntimeVersion(String value)
Copy the current immutable object by setting a value for the
runtimeVersion attribute. |
ImmutableCamelCatalogSpec |
withVersion(String value)
Copy the current immutable object by setting a value for the
version attribute. |
public String getVersion()
getVersion in interface CamelCatalogSpecversion attributepublic String getRuntimeVersion()
getRuntimeVersion in interface CamelCatalogSpecruntimeVersion attributepublic SortedMap<String,CamelArtifact> getArtifacts()
getArtifacts in interface CamelCatalogSpecartifacts attributepublic final ImmutableCamelCatalogSpec withVersion(String value)
version attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for versionthis objectpublic final ImmutableCamelCatalogSpec withRuntimeVersion(String value)
runtimeVersion attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for runtimeVersionthis objectpublic final ImmutableCamelCatalogSpec withArtifacts(SortedMap<String,CamelArtifact> value)
artifacts attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for artifactsthis objectpublic boolean equals(Object another)
ImmutableCamelCatalogSpec that have equal attribute values.public int hashCode()
version, runtimeVersion, artifacts.public String toString()
CamelCatalogSpec with attribute values.public static ImmutableCamelCatalogSpec copyOf(CamelCatalogSpec instance)
CamelCatalogSpec 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 copyCopyright © 2019 The Apache Software Foundation. All rights reserved.