Class ImmutableCamelCatalogSpec
- java.lang.Object
-
- org.apache.camel.k.tooling.maven.model.crd.ImmutableCamelCatalogSpec
-
- All Implemented Interfaces:
CamelCatalogSpec
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCamelCatalogSpec extends Object implements CamelCatalogSpec
Immutable implementation ofCamelCatalogSpec.Use the builder to create immutable instances:
new CamelCatalogSpec.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCamelCatalogSpec.BuilderBuilds instances of typeImmutableCamelCatalogSpec.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCamelCatalogSpeccopyOf(CamelCatalogSpec instance)Creates an immutable copy of aCamelCatalogSpecvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCamelCatalogSpecthat have equal attribute values.Map<String,CamelArtifact>getArtifacts()Map<String,CamelLoader>getLoaders()RuntimeSpecgetRuntime()inthashCode()Computes a hash code from attributes:runtime,artifacts,loaders.StringtoString()Prints the immutable valueCamelCatalogSpecwith attribute values.ImmutableCamelCatalogSpecwithArtifacts(Map<String,? extends CamelArtifact> entries)Copy the current immutable object by replacing theartifactsmap with the specified map.ImmutableCamelCatalogSpecwithLoaders(Map<String,? extends CamelLoader> entries)Copy the current immutable object by replacing theloadersmap with the specified map.ImmutableCamelCatalogSpecwithRuntime(RuntimeSpec value)Copy the current immutable object by setting a value for theruntimeattribute.
-
-
-
Method Detail
-
getRuntime
public RuntimeSpec getRuntime()
- Specified by:
getRuntimein interfaceCamelCatalogSpec- Returns:
- The value of the
runtimeattribute
-
getArtifacts
public Map<String,CamelArtifact> getArtifacts()
- Specified by:
getArtifactsin interfaceCamelCatalogSpec- Returns:
- The value of the
artifactsattribute
-
getLoaders
public Map<String,CamelLoader> getLoaders()
- Specified by:
getLoadersin interfaceCamelCatalogSpec- Returns:
- The value of the
loadersattribute
-
withRuntime
public final ImmutableCamelCatalogSpec withRuntime(RuntimeSpec value)
Copy the current immutable object by setting a value for theruntimeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for runtime- Returns:
- A modified copy of the
thisobject
-
withArtifacts
public final ImmutableCamelCatalogSpec withArtifacts(Map<String,? extends CamelArtifact> entries)
Copy the current immutable object by replacing theartifactsmap 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 returningthis.- Parameters:
entries- The entries to be added to the artifacts map- Returns:
- A modified copy of
thisobject
-
withLoaders
public final ImmutableCamelCatalogSpec withLoaders(Map<String,? extends CamelLoader> entries)
Copy the current immutable object by replacing theloadersmap 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 returningthis.- Parameters:
entries- The entries to be added to the loaders map- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCamelCatalogSpecthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:runtime,artifacts,loaders.
-
toString
public String toString()
Prints the immutable valueCamelCatalogSpecwith attribute values.
-
copyOf
public static ImmutableCamelCatalogSpec copyOf(CamelCatalogSpec instance)
Creates an immutable copy of aCamelCatalogSpecvalue. 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
-
-