@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableRuntimeSpec extends Object implements RuntimeSpec
RuntimeSpec.
Use the builder to create immutable instances:
new RuntimeSpec.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableRuntimeSpec.Builder
Builds instances of type
ImmutableRuntimeSpec. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableRuntimeSpec |
copyOf(RuntimeSpec instance)
Creates an immutable copy of a
RuntimeSpec value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRuntimeSpec that have equal attribute values. |
String |
getApplicationClass() |
com.google.common.collect.ImmutableMap<String,CamelCapability> |
getCapabilities() |
com.google.common.collect.ImmutableSet<MavenArtifact> |
getDependencies() |
com.google.common.collect.ImmutableMap<String,String> |
getMetadata() |
String |
getProvider() |
String |
getVersion() |
int |
hashCode()
Computes a hash code from attributes:
version, provider, applicationClass, metadata, dependencies, capabilities. |
String |
toString()
Prints the immutable value
RuntimeSpec with attribute values. |
ImmutableRuntimeSpec |
withApplicationClass(String value)
Copy the current immutable object by setting a value for the
applicationClass attribute. |
ImmutableRuntimeSpec |
withCapabilities(Map<String,? extends CamelCapability> entries)
Copy the current immutable object by replacing the
capabilities map with the specified map. |
ImmutableRuntimeSpec |
withDependencies(Iterable<? extends MavenArtifact> elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableRuntimeSpec |
withDependencies(MavenArtifact... elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableRuntimeSpec |
withMetadata(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
metadata map with the specified map. |
ImmutableRuntimeSpec |
withProvider(String value)
Copy the current immutable object by setting a value for the
provider attribute. |
ImmutableRuntimeSpec |
withVersion(String value)
Copy the current immutable object by setting a value for the
version attribute. |
public String getVersion()
getVersion in interface RuntimeSpecversion attributepublic String getProvider()
getProvider in interface RuntimeSpecprovider attributepublic String getApplicationClass()
getApplicationClass in interface RuntimeSpecapplicationClass attributepublic com.google.common.collect.ImmutableMap<String,String> getMetadata()
getMetadata in interface RuntimeSpecmetadata attributepublic com.google.common.collect.ImmutableSet<MavenArtifact> getDependencies()
getDependencies in interface RuntimeSpecdependencies attributepublic com.google.common.collect.ImmutableMap<String,CamelCapability> getCapabilities()
getCapabilities in interface RuntimeSpeccapabilities attributepublic final ImmutableRuntimeSpec 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 ImmutableRuntimeSpec withProvider(String value)
provider attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for providerthis objectpublic final ImmutableRuntimeSpec withApplicationClass(String value)
applicationClass attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for applicationClassthis objectpublic final ImmutableRuntimeSpec withMetadata(Map<String,? extends String> entries)
metadata map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the metadata mapthis objectpublic final ImmutableRuntimeSpec withDependencies(MavenArtifact... elements)
dependencies.elements - The elements to setthis objectpublic final ImmutableRuntimeSpec withDependencies(Iterable<? extends MavenArtifact> elements)
dependencies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of dependencies elements to setthis objectpublic final ImmutableRuntimeSpec withCapabilities(Map<String,? extends CamelCapability> entries)
capabilities map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the capabilities mapthis objectpublic boolean equals(Object another)
ImmutableRuntimeSpec that have equal attribute values.public int hashCode()
version, provider, applicationClass, metadata, dependencies, capabilities.public String toString()
RuntimeSpec with attribute values.public static ImmutableRuntimeSpec copyOf(RuntimeSpec instance)
RuntimeSpec 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 © 2020 The Apache Software Foundation. All rights reserved.