@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCamelLoader extends Object implements CamelLoader
CamelLoader.
Use the builder to create immutable instances:
new CamelLoader.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCamelLoader.Builder
Builds instances of type
ImmutableCamelLoader. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCamelLoader |
copyOf(CamelLoader instance)
Creates an immutable copy of a
CamelLoader value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCamelLoader that have equal attribute values. |
String |
getArtifactId() |
com.google.common.collect.ImmutableSet<Artifact> |
getDependencies() |
String |
getGroupId() |
com.google.common.collect.ImmutableSet<String> |
getLanguages() |
com.google.common.collect.ImmutableMap<String,String> |
getMetadata() |
Optional<String> |
getVersion() |
int |
hashCode()
Computes a hash code from attributes:
groupId, artifactId, version. |
String |
toString()
Prints the immutable value
CamelLoader with attribute values. |
ImmutableCamelLoader |
withArtifactId(String value)
Copy the current immutable object by setting a value for the
artifactId attribute. |
ImmutableCamelLoader |
withDependencies(Artifact... elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableCamelLoader |
withDependencies(Iterable<? extends Artifact> elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableCamelLoader |
withGroupId(String value)
Copy the current immutable object by setting a value for the
groupId attribute. |
ImmutableCamelLoader |
withLanguages(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
languages. |
ImmutableCamelLoader |
withLanguages(String... elements)
Copy the current immutable object with elements that replace the content of
languages. |
ImmutableCamelLoader |
withMetadata(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
metadata map with the specified map. |
ImmutableCamelLoader |
withVersion(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
version attribute. |
ImmutableCamelLoader |
withVersion(String value)
Copy the current immutable object by setting a present value for the optional
version attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfromArtifactpublic 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<String> getLanguages()
getLanguages in interface CamelLoaderlanguages attributepublic com.google.common.collect.ImmutableSet<Artifact> getDependencies()
getDependencies in interface CamelLoaderdependencies attributepublic com.google.common.collect.ImmutableMap<String,String> getMetadata()
getMetadata in interface CamelLoadermetadata attributepublic final ImmutableCamelLoader 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 ImmutableCamelLoader 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 ImmutableCamelLoader withVersion(String value)
version attribute.value - The value for versionthis objectpublic final ImmutableCamelLoader 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 ImmutableCamelLoader withLanguages(String... elements)
languages.elements - The elements to setthis objectpublic final ImmutableCamelLoader 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 ImmutableCamelLoader withDependencies(Artifact... elements)
dependencies.elements - The elements to setthis objectpublic final ImmutableCamelLoader 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 ImmutableCamelLoader withMetadata(Map<String,? extends String> entries)
metadata map 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 returning this.entries - The entries to be added to the metadata mapthis objectpublic boolean equals(Object another)
ImmutableCamelLoader that have equal attribute values.public int hashCode()
groupId, artifactId, version.public String toString()
CamelLoader with attribute values.public static ImmutableCamelLoader copyOf(CamelLoader instance)
CamelLoader 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.