Class ImmutableCamelArtifact

    • Method Detail

      • getGroupId

        public String getGroupId()
        Specified by:
        getGroupId in interface Artifact
        Returns:
        The value of the groupId attribute
      • getArtifactId

        public String getArtifactId()
        Specified by:
        getArtifactId in interface Artifact
        Returns:
        The value of the artifactId attribute
      • getSchemes

        public com.google.common.collect.ImmutableSet<CamelScheme> getSchemes()
        Specified by:
        getSchemes in interface CamelArtifact
        Returns:
        The value of the schemes attribute
      • getLanguages

        public com.google.common.collect.ImmutableSet<String> getLanguages()
        Specified by:
        getLanguages in interface CamelArtifact
        Returns:
        The value of the languages attribute
      • getDataformats

        public com.google.common.collect.ImmutableSet<String> getDataformats()
        Specified by:
        getDataformats in interface CamelArtifact
        Returns:
        The value of the dataformats attribute
      • getDependencies

        public com.google.common.collect.ImmutableSet<Artifact> getDependencies()
        Specified by:
        getDependencies in interface CamelArtifact
        Returns:
        The value of the dependencies attribute
      • getExclusions

        public com.google.common.collect.ImmutableSet<Artifact> getExclusions()
        Specified by:
        getExclusions in interface CamelArtifact
        Returns:
        The value of the exclusions attribute
      • getJavaTypes

        public com.google.common.collect.ImmutableSet<String> getJavaTypes()
        Specified by:
        getJavaTypes in interface CamelArtifact
        Returns:
        The value of the javaTypes attribute
      • withGroupId

        public final ImmutableCamelArtifact withGroupId​(String value)
        Copy the current immutable object by setting a value for the groupId attribute. An equals check used to prevent copying of the same value by returning this.
        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 the artifactId attribute. An equals check used to prevent copying of the same value by returning this.
        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 optional version 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 the version attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        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 of schemes.
        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 of schemes. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 of languages.
        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 of languages. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 of dataformats.
        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 of dataformats. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 of dependencies.
        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 of dependencies. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 of exclusions.
        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 of exclusions. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 of javaTypes.
        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 of javaTypes. A shallow reference equality check is used to prevent copying of the same value by returning this.
        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 of ImmutableCamelArtifact that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: groupId, artifactId, version.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value CamelArtifact with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableCamelArtifact copyOf​(CamelArtifact instance)
        Creates an immutable copy of a CamelArtifact 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