Class ImmutableTypeMeta
java.lang.Object
org.apache.camel.k.catalog.model.k8s.ImmutableTypeMeta
- All Implemented Interfaces:
TypeMeta
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableTypeMeta
extends Object
implements TypeMeta
Immutable implementation of
TypeMeta.
Use the builder to create immutable instances:
new TypeMeta.Builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableTypeMetaCreates an immutable copy of aTypeMetavalue.booleanThis instance is equal to all instances ofImmutableTypeMetathat have equal attribute values.getKind()inthashCode()Computes a hash code from attributes:apiVersion,kind.toString()Prints the immutable valueTypeMetawith attribute values.final ImmutableTypeMetawithApiVersion(String value) Copy the current immutable object by setting a value for theapiVersionattribute.final ImmutableTypeMetaCopy the current immutable object by setting a value for thekindattribute.
-
Method Details
-
getApiVersion
- Specified by:
getApiVersionin interfaceTypeMeta- Returns:
- The value of the
apiVersionattribute
-
getKind
-
withApiVersion
Copy the current immutable object by setting a value for theapiVersionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for apiVersion- Returns:
- A modified copy of the
thisobject
-
withKind
Copy the current immutable object by setting a value for thekindattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for kind- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableTypeMetathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:apiVersion,kind. -
toString
Prints the immutable valueTypeMetawith attribute values. -
copyOf
Creates an immutable copy of aTypeMetavalue. 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 TypeMeta instance
-