All Superinterfaces:
RecordKey, StandardKey
All Known Implementing Classes:
InvalidItemKey, ValidItemKey

public sealed interface ItemKey extends RecordKey permits ValidItemKey, InvalidItemKey
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.