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 ImmutableCamelCapabilitycopyOf(CamelCapability instance) Creates an immutable copy of aCamelCapabilityvalue.booleanThis instance is equal to all instances ofImmutableCamelCapabilitythat have equal attribute values.inthashCode()Returns a constant hash code value.toString()Prints the immutable valueCamelCapability.final ImmutableCamelCapabilitywithDependencies(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofdependencies.final ImmutableCamelCapabilitywithDependencies(Artifact... elements) Copy the current immutable object with elements that replace the content ofdependencies.
-
Method Details
-
getDependencies
- Specified by:
getDependenciesin interfaceCamelCapability- Returns:
- The value of the
dependenciesattribute
-
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
-
equals
This instance is equal to all instances ofImmutableCamelCapabilitythat 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 aCamelCapabilityvalue. 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
-