Enum Class AssociationType
- All Implemented Interfaces:
Serializable, Comparable<AssociationType>, Constable
Which side of a record an association applies to: key or value.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<AssociationType> Returns the matching enum value, orOptional.empty()if the input is not a recognized association type (includingnull).static AssociationTypeReturns the enum constant of this class with the specified name.static AssociationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.The lowercase string used in Schema Registry's association data structures (e.g., theassociationTypefield ofAssociationInfo/AssociationCreateOpon the SR REST API).Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
KEY
-
VALUE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
wireString
The lowercase string used in Schema Registry's association data structures (e.g., theassociationTypefield ofAssociationInfo/AssociationCreateOpon the SR REST API). Serialized via Jackson byJsonValuefor any AssociationConfig that's emitted as JSON. -
tryFromWireString
Returns the matching enum value, orOptional.empty()if the input is not a recognized association type (includingnull). Callers that need a non-nullAssociationTypeshould unwrap explicitly and handle the empty case — the enum value is non-null everywhere it's stored (e.g. as a field ofAssociationConfig).
-