Package org.apache.camel.k.catalog.model
Class ImmutableCamelCapability
java.lang.Object
org.apache.camel.k.catalog.model.ImmutableCamelCapability
- All Implemented Interfaces:
CamelCapability
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCamelCapability
extends Object
implements CamelCapability
Immutable implementation of
CamelCapability
.
Use the builder to create immutable instances:
new CamelCapability.Builder()
.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelCapability
copyOf
(CamelCapability instance) Creates an immutable copy of aCamelCapability
value.boolean
This instance is equal to all instances ofImmutableCamelCapability
that have equal attribute values.int
hashCode()
Returns a constant hash code value.toString()
Prints the immutable valueCamelCapability
.final ImmutableCamelCapability
withDependencies
(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofdependencies
.final ImmutableCamelCapability
withDependencies
(Artifact... elements) Copy the current immutable object with elements that replace the content ofdependencies
.
-
Method Details
-
getDependencies
- Specified by:
getDependencies
in interfaceCamelCapability
- Returns:
- The value of the
dependencies
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
-
equals
This instance is equal to all instances ofImmutableCamelCapability
that have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueCamelCapability
. -
copyOf
Creates an immutable copy of aCamelCapability
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 CamelCapability instance
-