@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCamelArtifact extends Object implements CamelArtifact
CamelArtifact.
Use the builder to create immutable instances:
new CamelArtifact.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCamelArtifact.Builder
Builds instances of type
ImmutableCamelArtifact. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCamelArtifact |
copyOf(CamelArtifact instance)
Creates an immutable copy of a
CamelArtifact value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCamelArtifact that have equal attribute values. |
String |
getArtifactId() |
com.google.common.collect.ImmutableSet<String> |
getDataformats() |
com.google.common.collect.ImmutableSet<Artifact> |
getDependencies() |
com.google.common.collect.ImmutableSet<Artifact> |
getExclusions() |
String |
getGroupId() |
com.google.common.collect.ImmutableSet<String> |
getJavaTypes() |
com.google.common.collect.ImmutableSet<String> |
getLanguages() |
com.google.common.collect.ImmutableSet<CamelScheme> |
getSchemes() |
Optional<String> |
getVersion() |
int |
hashCode()
Computes a hash code from attributes:
groupId, artifactId, version. |
String |
toString()
Prints the immutable value
CamelArtifact with attribute values. |
ImmutableCamelArtifact |
withArtifactId(String value)
Copy the current immutable object by setting a value for the
artifactId attribute. |
ImmutableCamelArtifact |
withDataformats(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
dataformats. |
ImmutableCamelArtifact |
withDataformats(String... elements)
Copy the current immutable object with elements that replace the content of
dataformats. |
ImmutableCamelArtifact |
withDependencies(Artifact... elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableCamelArtifact |
withDependencies(Iterable<? extends Artifact> elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableCamelArtifact |
withExclusions(Artifact... elements)
Copy the current immutable object with elements that replace the content of
exclusions. |
ImmutableCamelArtifact |
withExclusions(Iterable<? extends Artifact> elements)
Copy the current immutable object with elements that replace the content of
exclusions. |
ImmutableCamelArtifact |
withGroupId(String value)
Copy the current immutable object by setting a value for the
groupId attribute. |
ImmutableCamelArtifact |
withJavaTypes(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
javaTypes. |
ImmutableCamelArtifact |
withJavaTypes(String... elements)
Copy the current immutable object with elements that replace the content of
javaTypes. |
ImmutableCamelArtifact |
withLanguages(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
languages. |
ImmutableCamelArtifact |
withLanguages(String... elements)
Copy the current immutable object with elements that replace the content of
languages. |
ImmutableCamelArtifact |
withSchemes(CamelScheme... elements)
Copy the current immutable object with elements that replace the content of
schemes. |
ImmutableCamelArtifact |
withSchemes(Iterable<? extends CamelScheme> elements)
Copy the current immutable object with elements that replace the content of
schemes. |
ImmutableCamelArtifact |
withVersion(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
version attribute. |
ImmutableCamelArtifact |
withVersion(String value)
Copy the current immutable object by setting a present value for the optional
version attribute. |
public String getGroupId()
getGroupId in interface ArtifactgroupId attributepublic String getArtifactId()
getArtifactId in interface ArtifactartifactId attributepublic Optional<String> getVersion()
getVersion in interface Artifactversion attributepublic com.google.common.collect.ImmutableSet<CamelScheme> getSchemes()
getSchemes in interface CamelArtifactschemes attributepublic com.google.common.collect.ImmutableSet<String> getLanguages()
getLanguages in interface CamelArtifactlanguages attributepublic com.google.common.collect.ImmutableSet<String> getDataformats()
getDataformats in interface CamelArtifactdataformats attributepublic com.google.common.collect.ImmutableSet<Artifact> getDependencies()
getDependencies in interface CamelArtifactdependencies attributepublic com.google.common.collect.ImmutableSet<Artifact> getExclusions()
getExclusions in interface CamelArtifactexclusions attributepublic com.google.common.collect.ImmutableSet<String> getJavaTypes()
getJavaTypes in interface CamelArtifactjavaTypes attributepublic final ImmutableCamelArtifact withGroupId(String value)
groupId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for groupIdthis objectpublic final ImmutableCamelArtifact withArtifactId(String value)
artifactId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for artifactIdthis objectpublic final ImmutableCamelArtifact withVersion(String value)
version attribute.value - The value for versionthis objectpublic final ImmutableCamelArtifact withVersion(Optional<String> optional)
version attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for versionthis objectpublic final ImmutableCamelArtifact withSchemes(CamelScheme... elements)
schemes.elements - The elements to setthis objectpublic final ImmutableCamelArtifact withSchemes(Iterable<? extends CamelScheme> elements)
schemes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of schemes elements to setthis objectpublic final ImmutableCamelArtifact withLanguages(String... elements)
languages.elements - The elements to setthis objectpublic final ImmutableCamelArtifact withLanguages(Iterable<String> elements)
languages.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of languages elements to setthis objectpublic final ImmutableCamelArtifact withDataformats(String... elements)
dataformats.elements - The elements to setthis objectpublic final ImmutableCamelArtifact withDataformats(Iterable<String> elements)
dataformats.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of dataformats elements to setthis objectpublic final ImmutableCamelArtifact withDependencies(Artifact... elements)
dependencies.elements - The elements to setthis objectpublic final ImmutableCamelArtifact withDependencies(Iterable<? extends Artifact> elements)
dependencies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of dependencies elements to setthis objectpublic final ImmutableCamelArtifact withExclusions(Artifact... elements)
exclusions.elements - The elements to setthis objectpublic final ImmutableCamelArtifact withExclusions(Iterable<? extends Artifact> elements)
exclusions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of exclusions elements to setthis objectpublic final ImmutableCamelArtifact withJavaTypes(String... elements)
javaTypes.elements - The elements to setthis objectpublic final ImmutableCamelArtifact withJavaTypes(Iterable<String> elements)
javaTypes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of javaTypes elements to setthis objectpublic boolean equals(Object another)
ImmutableCamelArtifact that have equal attribute values.public int hashCode()
groupId, artifactId, version.public String toString()
CamelArtifact with attribute values.public static ImmutableCamelArtifact copyOf(CamelArtifact instance)
CamelArtifact value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copyCopyright © 2020 The Apache Software Foundation. All rights reserved.