All Superinterfaces:
RecordKey, StandardKey
All Known Implementing Classes:
InvalidConstantKey, ValidConstantKey

public sealed interface ConstantKey extends RecordKey permits ValidConstantKey, InvalidConstantKey
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 a Valid or Invalid implementation of the RecordKey, or an empty Optional if the parameter was invalid, as determined by regex pattern and Predicate.