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 ofCamelScopedArtifact
.Use the builder to create immutable instances:
new CamelScopedArtifact.Builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableCamelScopedArtifact.Builder
Builds instances of typeImmutableCamelScopedArtifact
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCamelScopedArtifact
copyOf(CamelScopedArtifact instance)
Creates an immutable copy of aCamelScopedArtifact
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableCamelScopedArtifact
that have equal attribute values.SortedSet<Artifact>
getDependencies()
SortedSet<String>
getRequiredCapabilities()
int
hashCode()
Returns a constant hash code value.String
toString()
Prints the immutable valueCamelScopedArtifact
.ImmutableCamelScopedArtifact
withDependencies(Iterable<? extends Artifact> elements)
Copy the current immutable object with elements that replace the content ofdependencies
.ImmutableCamelScopedArtifact
withDependencies(Artifact... elements)
Copy the current immutable object with elements that replace the content ofdependencies
.ImmutableCamelScopedArtifact
withRequiredCapabilities(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofrequiredCapabilities
.ImmutableCamelScopedArtifact
withRequiredCapabilities(String... elements)
Copy the current immutable object with elements that replace the content ofrequiredCapabilities
.
-
-
-
Method Detail
-
getDependencies
public SortedSet<Artifact> getDependencies()
- Specified by:
getDependencies
in interfaceCamelScopedArtifact
- Returns:
- The value of the
dependencies
attribute
-
getRequiredCapabilities
public SortedSet<String> getRequiredCapabilities()
- Specified by:
getRequiredCapabilities
in interfaceCamelScopedArtifact
- Returns:
- The value of the
requiredCapabilities
attribute
-
withDependencies
public final ImmutableCamelScopedArtifact 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 ImmutableCamelScopedArtifact 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
-
withRequiredCapabilities
public final ImmutableCamelScopedArtifact withRequiredCapabilities(String... elements)
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
public final ImmutableCamelScopedArtifact withRequiredCapabilities(Iterable<String> elements)
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
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCamelScopedArtifact
that have equal attribute values.
-
hashCode
public int hashCode()
Returns a constant hash code value.
-
toString
public String toString()
Prints the immutable valueCamelScopedArtifact
.
-
copyOf
public static ImmutableCamelScopedArtifact copyOf(CamelScopedArtifact instance)
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
-
-