Class ImmutableCamelCatalogSpec

    • Method Detail

      • withRuntime

        public final ImmutableCamelCatalogSpec withRuntime​(RuntimeSpec value)
        Copy the current immutable object by setting a value for the runtime attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for runtime
        Returns:
        A modified copy of the this object
      • withArtifacts

        public final ImmutableCamelCatalogSpec withArtifacts​(Map<String,​? extends CamelArtifact> entries)
        Copy the current immutable object by replacing the artifacts 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.
        Parameters:
        entries - The entries to be added to the artifacts map
        Returns:
        A modified copy of this object
      • withLoaders

        public final ImmutableCamelCatalogSpec withLoaders​(Map<String,​? extends CamelLoader> entries)
        Copy the current immutable object by replacing the loaders 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.
        Parameters:
        entries - The entries to be added to the loaders map
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableCamelCatalogSpec 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: runtime, artifacts, loaders.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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