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 class
Builds instances of typeImmutableCamelScopedArtifact
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelScopedArtifact
copyOf
(CamelScopedArtifact instance) Creates an immutable copy of aCamelScopedArtifact
value.boolean
This instance is equal to all instances ofImmutableCamelScopedArtifact
that have equal attribute values.int
hashCode()
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:
getDependencies
in interfaceCamelScopedArtifact
- Returns:
- The value of the
dependencies
attribute
-
getRequiredCapabilities
- Specified by:
getRequiredCapabilities
in interfaceCamelScopedArtifact
- Returns:
- The value of the
requiredCapabilities
attribute
-
withDependencies
Copy the current immutable object with elements that replace the content ofdependencies
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
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
this
object
-
withRequiredCapabilities
Copy the current immutable object with elements that replace the content ofrequiredCapabilities
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
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
this
object
-
equals
This instance is equal to all instances ofImmutableCamelScopedArtifact
that 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 aCamelScopedArtifact
value. 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
-