Package org.apache.camel.k.catalog.model
Class ImmutableCamelLoader
java.lang.Object
org.apache.camel.k.catalog.model.ImmutableCamelLoader
- All Implemented Interfaces:
Comparable<Artifact>,Artifact,CamelLoader
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCamelLoader
extends Object
implements CamelLoader
Immutable implementation of
CamelLoader.
Use the builder to create immutable instances:
new CamelLoader.Builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelLoadercopyOf(CamelLoader instance) Creates an immutable copy of aCamelLoadervalue.booleanThis instance is equal to all instances ofImmutableCamelLoaderthat have equal attribute values.inthashCode()Computes a hash code from attributes:groupId,artifactId,classifier,version.toString()Prints the immutable valueCamelLoaderwith attribute values.final ImmutableCamelLoaderwithArtifactId(String value) Copy the current immutable object by setting a value for theartifactIdattribute.final ImmutableCamelLoaderwithClassifier(String value) Copy the current immutable object by setting a present value for the optionalclassifierattribute.final ImmutableCamelLoaderwithClassifier(Optional<String> optional) Copy the current immutable object by setting an optional value for theclassifierattribute.final ImmutableCamelLoaderwithDependencies(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofdependencies.final ImmutableCamelLoaderwithDependencies(Artifact... elements) Copy the current immutable object with elements that replace the content ofdependencies.final ImmutableCamelLoaderwithGroupId(String value) Copy the current immutable object by setting a value for thegroupIdattribute.final ImmutableCamelLoaderwithLanguages(Iterable<String> elements) Copy the current immutable object with elements that replace the content oflanguages.final ImmutableCamelLoaderwithLanguages(String... elements) Copy the current immutable object with elements that replace the content oflanguages.final ImmutableCamelLoaderwithMetadata(Map<String, ? extends String> entries) Copy the current immutable object by replacing themetadatamap with the specified map.final ImmutableCamelLoaderwithVersion(String value) Copy the current immutable object by setting a present value for the optionalversionattribute.final ImmutableCamelLoaderwithVersion(Optional<String> optional) Copy the current immutable object by setting an optional value for theversionattribute.
-
Method Details
-
getGroupId
- Specified by:
getGroupIdin interfaceArtifact- Returns:
- The value of the
groupIdattribute
-
getArtifactId
- Specified by:
getArtifactIdin interfaceArtifact- Returns:
- The value of the
artifactIdattribute
-
getClassifier
- Specified by:
getClassifierin interfaceArtifact- Returns:
- The value of the
classifierattribute
-
getVersion
- Specified by:
getVersionin interfaceArtifact- Returns:
- The value of the
versionattribute
-
getLanguages
- Specified by:
getLanguagesin interfaceCamelLoader- Returns:
- The value of the
languagesattribute
-
getDependencies
- Specified by:
getDependenciesin interfaceCamelLoader- Returns:
- The value of the
dependenciesattribute
-
getMetadata
- Specified by:
getMetadatain interfaceCamelLoader- Returns:
- The value of the
metadataattribute
-
withGroupId
Copy the current immutable object by setting a value for thegroupIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for groupId- Returns:
- A modified copy of the
thisobject
-
withArtifactId
Copy the current immutable object by setting a value for theartifactIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for artifactId- Returns:
- A modified copy of the
thisobject
-
withClassifier
Copy the current immutable object by setting a present value for the optionalclassifierattribute.- Parameters:
value- The value for classifier- Returns:
- A modified copy of
thisobject
-
withClassifier
Copy the current immutable object by setting an optional value for theclassifierattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for classifier- Returns:
- A modified copy of
thisobject
-
withVersion
Copy the current immutable object by setting a present value for the optionalversionattribute.- Parameters:
value- The value for version- Returns:
- A modified copy of
thisobject
-
withVersion
Copy the current immutable object by setting an optional value for theversionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for version- Returns:
- A modified copy of
thisobject
-
withLanguages
Copy the current immutable object with elements that replace the content oflanguages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLanguages
Copy the current immutable object with elements that replace the content oflanguages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of languages elements to set- Returns:
- A modified copy of
thisobject
-
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
-
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 ofImmutableCamelLoaderthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:groupId,artifactId,classifier,version. -
toString
Prints the immutable valueCamelLoaderwith attribute values. -
copyOf
Creates an immutable copy of aCamelLoadervalue. 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 CamelLoader instance
-