| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTypeMeta.Builder
Builds instances of type
ImmutableTypeMeta. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTypeMeta |
copyOf(TypeMeta instance)
Creates an immutable copy of a
TypeMeta value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTypeMeta that have equal attribute values. |
String |
getApiVersion() |
String |
getKind() |
int |
hashCode()
Computes a hash code from attributes:
apiVersion, kind. |
String |
toString()
Prints the immutable value
TypeMeta with attribute values. |
ImmutableTypeMeta |
withApiVersion(String value)
Copy the current immutable object by setting a value for the
apiVersion attribute. |
ImmutableTypeMeta |
withKind(String value)
Copy the current immutable object by setting a value for the
kind attribute. |
public String getApiVersion()
getApiVersion in interface TypeMetaapiVersion attributepublic String getKind()
public final ImmutableTypeMeta withApiVersion(String value)
apiVersion attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for apiVersionthis objectpublic final ImmutableTypeMeta withKind(String value)
kind attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for kindthis objectpublic boolean equals(Object another)
ImmutableTypeMeta that have equal attribute values.public int hashCode()
apiVersion, kind.public String toString()
TypeMeta with attribute values.public static ImmutableTypeMeta copyOf(TypeMeta instance)
TypeMeta value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copyCopyright © 2019 The Apache Software Foundation. All rights reserved.