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