@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. |
com.google.common.collect.ImmutableMap<String,CamelArtifact> |
getArtifacts() |
com.google.common.collect.ImmutableMap<String,CamelLoader> |
getLoaders() |
RuntimeSpec |
getRuntime() |
int |
hashCode()
Computes a hash code from attributes:
runtime, artifacts, loaders. |
String |
toString()
Prints the immutable value
CamelCatalogSpec with attribute values. |
ImmutableCamelCatalogSpec |
withArtifacts(Map<String,? extends CamelArtifact> entries)
Copy the current immutable object by replacing the
artifacts map with the specified map. |
ImmutableCamelCatalogSpec |
withLoaders(Map<String,? extends CamelLoader> entries)
Copy the current immutable object by replacing the
loaders map with the specified map. |
ImmutableCamelCatalogSpec |
withRuntime(RuntimeSpec value)
Copy the current immutable object by setting a value for the
runtime attribute. |
public RuntimeSpec getRuntime()
getRuntime in interface CamelCatalogSpecruntime attributepublic com.google.common.collect.ImmutableMap<String,CamelArtifact> getArtifacts()
getArtifacts in interface CamelCatalogSpecartifacts attributepublic com.google.common.collect.ImmutableMap<String,CamelLoader> getLoaders()
getLoaders in interface CamelCatalogSpecloaders attributepublic final ImmutableCamelCatalogSpec withRuntime(RuntimeSpec value)
runtime attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for runtimethis objectpublic final ImmutableCamelCatalogSpec withArtifacts(Map<String,? extends CamelArtifact> entries)
artifacts 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 artifacts mapthis objectpublic final ImmutableCamelCatalogSpec withLoaders(Map<String,? extends CamelLoader> entries)
loaders 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 loaders mapthis objectpublic boolean equals(Object another)
ImmutableCamelCatalogSpec that have equal attribute values.public int hashCode()
runtime, artifacts, loaders.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 © 2020 The Apache Software Foundation. All rights reserved.