All Superinterfaces:
RecordKey, StandardKey
All Known Implementing Classes:
InvalidMessageKey, ValidMessageKey

public sealed interface MessageKey extends RecordKey permits ValidMessageKey, InvalidMessageKey
A type that represents a validated string for a record. This type guarantees a valid string that has been validated upon creation. The static factory methods return an Optional of the LegacyRecordKey, or an empty Optional if the parameter was invalid, as determined by regex pattern and Predicate.