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 ofCamelArtifact
.Use the builder to create immutable instances:
new CamelArtifact.Builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableCamelArtifact.Builder
Builds instances of typeImmutableCamelArtifact
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCamelArtifact
copyOf(CamelArtifact instance)
Creates an immutable copy of aCamelArtifact
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableCamelArtifact
that have equal attribute values.String
getArtifactId()
SortedSet<String>
getDataformats()
SortedSet<Artifact>
getDependencies()
SortedSet<Artifact>
getExclusions()
String
getGroupId()
SortedSet<String>
getJavaTypes()
SortedSet<String>
getLanguages()
SortedSet<CamelScheme>
getSchemes()
Optional<String>
getVersion()
int
hashCode()
Computes a hash code from attributes:groupId
,artifactId
,version
.String
toString()
Prints the immutable valueCamelArtifact
with attribute values.ImmutableCamelArtifact
withArtifactId(String value)
Copy the current immutable object by setting a value for theartifactId
attribute.ImmutableCamelArtifact
withDataformats(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofdataformats
.ImmutableCamelArtifact
withDataformats(String... elements)
Copy the current immutable object with elements that replace the content ofdataformats
.ImmutableCamelArtifact
withDependencies(Iterable<? extends Artifact> elements)
Copy the current immutable object with elements that replace the content ofdependencies
.ImmutableCamelArtifact
withDependencies(Artifact... elements)
Copy the current immutable object with elements that replace the content ofdependencies
.ImmutableCamelArtifact
withExclusions(Iterable<? extends Artifact> elements)
Copy the current immutable object with elements that replace the content ofexclusions
.ImmutableCamelArtifact
withExclusions(Artifact... elements)
Copy the current immutable object with elements that replace the content ofexclusions
.ImmutableCamelArtifact
withGroupId(String value)
Copy the current immutable object by setting a value for thegroupId
attribute.ImmutableCamelArtifact
withJavaTypes(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofjavaTypes
.ImmutableCamelArtifact
withJavaTypes(String... elements)
Copy the current immutable object with elements that replace the content ofjavaTypes
.ImmutableCamelArtifact
withLanguages(Iterable<String> elements)
Copy the current immutable object with elements that replace the content oflanguages
.ImmutableCamelArtifact
withLanguages(String... elements)
Copy the current immutable object with elements that replace the content oflanguages
.ImmutableCamelArtifact
withSchemes(Iterable<? extends CamelScheme> elements)
Copy the current immutable object with elements that replace the content ofschemes
.ImmutableCamelArtifact
withSchemes(CamelScheme... elements)
Copy the current immutable object with elements that replace the content ofschemes
.ImmutableCamelArtifact
withVersion(String value)
Copy the current immutable object by setting a present value for the optionalversion
attribute.ImmutableCamelArtifact
withVersion(Optional<String> optional)
Copy the current immutable object by setting an optional value for theversion
attribute.
-
-
-
Method Detail
-
getGroupId
public String getGroupId()
- Specified by:
getGroupId
in interfaceArtifact
- Returns:
- The value of the
groupId
attribute
-
getArtifactId
public String getArtifactId()
- Specified by:
getArtifactId
in interfaceArtifact
- Returns:
- The value of the
artifactId
attribute
-
getVersion
public Optional<String> getVersion()
- Specified by:
getVersion
in interfaceArtifact
- Returns:
- The value of the
version
attribute
-
getSchemes
public SortedSet<CamelScheme> getSchemes()
- Specified by:
getSchemes
in interfaceCamelArtifact
- Returns:
- The value of the
schemes
attribute
-
getLanguages
public SortedSet<String> getLanguages()
- Specified by:
getLanguages
in interfaceCamelArtifact
- Returns:
- The value of the
languages
attribute
-
getDataformats
public SortedSet<String> getDataformats()
- Specified by:
getDataformats
in interfaceCamelArtifact
- Returns:
- The value of the
dataformats
attribute
-
getDependencies
public SortedSet<Artifact> getDependencies()
- Specified by:
getDependencies
in interfaceCamelArtifact
- Returns:
- The value of the
dependencies
attribute
-
getExclusions
public SortedSet<Artifact> getExclusions()
- Specified by:
getExclusions
in interfaceCamelArtifact
- Returns:
- The value of the
exclusions
attribute
-
getJavaTypes
public SortedSet<String> getJavaTypes()
- Specified by:
getJavaTypes
in interfaceCamelArtifact
- Returns:
- The value of the
javaTypes
attribute
-
withGroupId
public final ImmutableCamelArtifact withGroupId(String value)
Copy the current immutable object by setting a value for thegroupId
attribute. 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
this
object
-
withArtifactId
public final ImmutableCamelArtifact withArtifactId(String value)
Copy the current immutable object by setting a value for theartifactId
attribute. 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
this
object
-
withVersion
public final ImmutableCamelArtifact withVersion(String value)
Copy the current immutable object by setting a present value for the optionalversion
attribute.- Parameters:
value
- The value for version- Returns:
- A modified copy of
this
object
-
withVersion
public final ImmutableCamelArtifact withVersion(Optional<String> optional)
Copy the current immutable object by setting an optional value for theversion
attribute. 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
this
object
-
withSchemes
public final ImmutableCamelArtifact withSchemes(CamelScheme... elements)
Copy the current immutable object with elements that replace the content ofschemes
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withSchemes
public final ImmutableCamelArtifact withSchemes(Iterable<? extends CamelScheme> elements)
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
this
object
-
withLanguages
public final ImmutableCamelArtifact withLanguages(String... elements)
Copy the current immutable object with elements that replace the content oflanguages
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withLanguages
public final ImmutableCamelArtifact withLanguages(Iterable<String> elements)
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
this
object
-
withDataformats
public final ImmutableCamelArtifact withDataformats(String... elements)
Copy the current immutable object with elements that replace the content ofdataformats
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withDataformats
public final ImmutableCamelArtifact withDataformats(Iterable<String> elements)
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
this
object
-
withDependencies
public final ImmutableCamelArtifact 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 ImmutableCamelArtifact 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
-
withExclusions
public final ImmutableCamelArtifact withExclusions(Artifact... elements)
Copy the current immutable object with elements that replace the content ofexclusions
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withExclusions
public final ImmutableCamelArtifact withExclusions(Iterable<? extends Artifact> elements)
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
this
object
-
withJavaTypes
public final ImmutableCamelArtifact withJavaTypes(String... elements)
Copy the current immutable object with elements that replace the content ofjavaTypes
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withJavaTypes
public final ImmutableCamelArtifact withJavaTypes(Iterable<String> elements)
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
this
object
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCamelArtifact
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:groupId
,artifactId
,version
.
-
toString
public String toString()
Prints the immutable valueCamelArtifact
with attribute values.
-
copyOf
public static ImmutableCamelArtifact copyOf(CamelArtifact instance)
Creates an immutable copy of aCamelArtifact
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 CamelArtifact instance
-
-