Package org.apache.camel.k.catalog.model
Class ImmutableCamelArtifact
java.lang.Object
org.apache.camel.k.catalog.model.ImmutableCamelArtifact
- All Implemented Interfaces:
Comparable<Artifact>,Artifact,CamelArtifact
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCamelArtifact
extends Object
implements CamelArtifact
Immutable implementation of
CamelArtifact.
Use the builder to create immutable instances:
new CamelArtifact.Builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCamelArtifactcopyOf(CamelArtifact instance) Creates an immutable copy of aCamelArtifactvalue.booleanThis instance is equal to all instances ofImmutableCamelArtifactthat have equal attribute values.inthashCode()Computes a hash code from attributes:groupId,artifactId,classifier,version.toString()Prints the immutable valueCamelArtifactwith attribute values.final ImmutableCamelArtifactwithArtifactId(String value) Copy the current immutable object by setting a value for theartifactIdattribute.final ImmutableCamelArtifactwithClassifier(String value) Copy the current immutable object by setting a present value for the optionalclassifierattribute.final ImmutableCamelArtifactwithClassifier(Optional<String> optional) Copy the current immutable object by setting an optional value for theclassifierattribute.final ImmutableCamelArtifactwithDataformats(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofdataformats.final ImmutableCamelArtifactwithDataformats(String... elements) Copy the current immutable object with elements that replace the content ofdataformats.final ImmutableCamelArtifactwithDependencies(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofdependencies.final ImmutableCamelArtifactwithDependencies(Artifact... elements) Copy the current immutable object with elements that replace the content ofdependencies.final ImmutableCamelArtifactwithExclusions(Iterable<? extends Artifact> elements) Copy the current immutable object with elements that replace the content ofexclusions.final ImmutableCamelArtifactwithExclusions(Artifact... elements) Copy the current immutable object with elements that replace the content ofexclusions.final ImmutableCamelArtifactwithGroupId(String value) Copy the current immutable object by setting a value for thegroupIdattribute.final ImmutableCamelArtifactwithJavaTypes(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofjavaTypes.final ImmutableCamelArtifactwithJavaTypes(String... elements) Copy the current immutable object with elements that replace the content ofjavaTypes.final ImmutableCamelArtifactwithLanguages(Iterable<String> elements) Copy the current immutable object with elements that replace the content oflanguages.final ImmutableCamelArtifactwithLanguages(String... elements) Copy the current immutable object with elements that replace the content oflanguages.final ImmutableCamelArtifactwithSchemes(Iterable<? extends CamelScheme> elements) Copy the current immutable object with elements that replace the content ofschemes.final ImmutableCamelArtifactwithSchemes(CamelScheme... elements) Copy the current immutable object with elements that replace the content ofschemes.final ImmutableCamelArtifactwithVersion(String value) Copy the current immutable object by setting a present value for the optionalversionattribute.final ImmutableCamelArtifactwithVersion(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
-
getSchemes
- Specified by:
getSchemesin interfaceCamelArtifact- Returns:
- The value of the
schemesattribute
-
getLanguages
- Specified by:
getLanguagesin interfaceCamelArtifact- Returns:
- The value of the
languagesattribute
-
getDataformats
- Specified by:
getDataformatsin interfaceCamelArtifact- Returns:
- The value of the
dataformatsattribute
-
getDependencies
- Specified by:
getDependenciesin interfaceCamelArtifact- Returns:
- The value of the
dependenciesattribute
-
getExclusions
- Specified by:
getExclusionsin interfaceCamelArtifact- Returns:
- The value of the
exclusionsattribute
-
getJavaTypes
- Specified by:
getJavaTypesin interfaceCamelArtifact- Returns:
- The value of the
javaTypesattribute
-
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
-
withSchemes
Copy the current immutable object with elements that replace the content ofschemes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSchemes
Copy the current immutable object with elements that replace the content ofschemes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of schemes elements to set- 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
-
withDataformats
Copy the current immutable object with elements that replace the content ofdataformats.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDataformats
Copy the current immutable object with elements that replace the content ofdataformats. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of dataformats 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
-
withExclusions
Copy the current immutable object with elements that replace the content ofexclusions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExclusions
Copy the current immutable object with elements that replace the content ofexclusions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of exclusions elements to set- Returns:
- A modified copy of
thisobject
-
withJavaTypes
Copy the current immutable object with elements that replace the content ofjavaTypes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withJavaTypes
Copy the current immutable object with elements that replace the content ofjavaTypes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of javaTypes elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableCamelArtifactthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:groupId,artifactId,classifier,version. -
toString
Prints the immutable valueCamelArtifactwith attribute values. -
copyOf
Creates an immutable copy of aCamelArtifactvalue. 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 CamelArtifact instance
-