Package org.apache.camel.k.catalog.model
Class ImmutableCamelScopedArtifact
java.lang.Object
org.apache.camel.k.catalog.model.ImmutableCamelScopedArtifact
- All Implemented Interfaces:
CamelScopedArtifact
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCamelScopedArtifact
extends Object
implements CamelScopedArtifact
Immutable implementation of
CamelScopedArtifact.
Use the builder to create immutable instances:
new CamelScopedArtifact.Builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds instances of typeImmutableCamelScopedArtifact. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelScopedArtifactcopyOf(CamelScopedArtifact instance) Creates an immutable copy of aCamelScopedArtifactvalue.booleanThis instance is equal to all instances ofImmutableCamelScopedArtifactthat have equal attribute values.inthashCode()Returns a constant hash code value.toString()Prints the immutable valueCamelScopedArtifact.withDependencies(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofdependencies.withDependencies(Artifact... elements) Copy the current immutable object with elements that replace the content ofdependencies.withRequiredCapabilities(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofrequiredCapabilities.withRequiredCapabilities(String... elements) Copy the current immutable object with elements that replace the content ofrequiredCapabilities.
-
Method Details
-
getDependencies
- Specified by:
getDependenciesin interfaceCamelScopedArtifact- Returns:
- The value of the
dependenciesattribute
-
getRequiredCapabilities
- Specified by:
getRequiredCapabilitiesin interfaceCamelScopedArtifact- Returns:
- The value of the
requiredCapabilitiesattribute
-
withDependencies
Copy the current immutable object with elements that replace the content ofdependencies.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDependencies
Copy the current immutable object with elements that replace the content ofdependencies. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of dependencies elements to set- Returns:
- A modified copy of
thisobject
-
withRequiredCapabilities
Copy the current immutable object with elements that replace the content ofrequiredCapabilities.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRequiredCapabilities
Copy the current immutable object with elements that replace the content ofrequiredCapabilities. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of requiredCapabilities elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableCamelScopedArtifactthat have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueCamelScopedArtifact. -
copyOf
Creates an immutable copy of aCamelScopedArtifactvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable CamelScopedArtifact instance
-