Class ImmutableCamelScopedArtifact

java.lang.Object
org.apache.camel.k.catalog.model.ImmutableCamelScopedArtifact
All Implemented Interfaces:
CamelScopedArtifact

@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCamelScopedArtifact extends Object implements CamelScopedArtifact
Immutable implementation of CamelScopedArtifact.

Use the builder to create immutable instances: new CamelScopedArtifact.Builder().

  • Method Details

    • getDependencies

      public SortedSet<Artifact> getDependencies()
      Specified by:
      getDependencies in interface CamelScopedArtifact
      Returns:
      The value of the dependencies attribute
    • getRequiredCapabilities

      public SortedSet<String> getRequiredCapabilities()
      Specified by:
      getRequiredCapabilities in interface CamelScopedArtifact
      Returns:
      The value of the requiredCapabilities attribute
    • withDependencies

      public final ImmutableCamelScopedArtifact 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 ImmutableCamelScopedArtifact 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
    • withRequiredCapabilities

      public final ImmutableCamelScopedArtifact withRequiredCapabilities(String... elements)
      Copy the current immutable object with elements that replace the content of requiredCapabilities.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withRequiredCapabilities

      public final ImmutableCamelScopedArtifact withRequiredCapabilities(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of requiredCapabilities. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of requiredCapabilities elements to set
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableCamelScopedArtifact that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Returns a constant hash code value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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