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 classImmutableCamelCapability.BuilderBuilds instances of typeImmutableCamelCapability.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCamelCapabilitycopyOf(CamelCapability instance)Creates an immutable copy of aCamelCapabilityvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCamelCapabilitythat have equal attribute values.com.google.common.collect.ImmutableSet<Artifact>getDependencies()inthashCode()Returns a constant hash code value.StringtoString()Prints the immutable valueCamelCapability.ImmutableCamelCapabilitywithDependencies(Iterable<? extends Artifact> elements)Copy the current immutable object with elements that replace the content ofdependencies.ImmutableCamelCapabilitywithDependencies(Artifact... elements)Copy the current immutable object with elements that replace the content ofdependencies.
-
-
-
Method Detail
-
getDependencies
public com.google.common.collect.ImmutableSet<Artifact> getDependencies()
- Specified by:
getDependenciesin interfaceCamelCapability- Returns:
- The value of the
dependenciesattribute
-
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
thisobject
-
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
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCamelCapabilitythat 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 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
-
-