Record Class KeyDescriptor
java.lang.Object
java.lang.Record
io.micronaut.serde.KeyDescriptor
- Record Components:
name- The serialized key namemetadata- Backend-neutral serde configuration keyed by its internal member name
-
Constructor Summary
ConstructorsConstructorDescriptionKeyDescriptor(String name) Creates a key descriptor without additional metadata.KeyDescriptor(String name, Map<String, String> metadata) Creates an immutable key descriptor. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyDescriptorCreates a descriptor from alternating metadata names and values.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyDescriptor
-
KeyDescriptor
Creates a key descriptor without additional metadata.- Parameters:
name- The serialized key name- Since:
- 3.2
-
-
Method Details
-
create
Creates a descriptor from alternating metadata names and values.- Parameters:
name- The serialized key namemetadata- Alternating metadata names and values- Returns:
- The key descriptor
- Since:
- 3.2
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
metadata
-