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 ImmutableCamelCapabilitywithBuildTimeProperties(Iterable<? extends Property> elements) Copy the current immutable object with elements that replace the content ofbuildTimeProperties.final ImmutableCamelCapabilitywithBuildTimeProperties(Property... elements) Copy the current immutable object with elements that replace the content ofbuildTimeProperties.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.final ImmutableCamelCapabilitywithMetadata(Map<String, ? extends String> entries) Copy the current immutable object by replacing themetadatamap with the specified map.final ImmutableCamelCapabilitywithRuntimeProperties(Iterable<? extends Property> elements) Copy the current immutable object with elements that replace the content ofruntimeProperties.final ImmutableCamelCapabilitywithRuntimeProperties(Property... elements) Copy the current immutable object with elements that replace the content ofruntimeProperties.
-
Method Details
-
getDependencies
- Specified by:
getDependenciesin interfaceCamelCapability- Returns:
- The value of the
dependenciesattribute
-
getRuntimeProperties
- Specified by:
getRuntimePropertiesin interfaceCamelCapability- Returns:
- The value of the
runtimePropertiesattribute
-
getBuildTimeProperties
- Specified by:
getBuildTimePropertiesin interfaceCamelCapability- Returns:
- The value of the
buildTimePropertiesattribute
-
getMetadata
- Specified by:
getMetadatain interfaceCamelCapability- Returns:
- The value of the
metadataattribute
-
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
-
withRuntimeProperties
Copy the current immutable object with elements that replace the content ofruntimeProperties.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRuntimeProperties
Copy the current immutable object with elements that replace the content ofruntimeProperties. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of runtimeProperties elements to set- Returns:
- A modified copy of
thisobject
-
withBuildTimeProperties
Copy the current immutable object with elements that replace the content ofbuildTimeProperties.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBuildTimeProperties
public final ImmutableCamelCapability withBuildTimeProperties(Iterable<? extends Property> elements) Copy the current immutable object with elements that replace the content ofbuildTimeProperties. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of buildTimeProperties elements to set- Returns:
- A modified copy of
thisobject
-
withMetadata
Copy the current immutable object by replacing themetadatamap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the metadata map- 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
-