Interface ConstantKey
- All Superinterfaces:
RecordKey,StandardKey
- All Known Implementing Classes:
InvalidConstantKey,ValidConstantKey
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.
-
Field Summary
Fields inherited from interface com.winterhavenmc.library.messagebuilder.models.keys.StandardKey
IS_INVALID_KEY, VALID_KEY_PATTERN -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<ValidConstantKey> isValid()static ConstantKey
-
Method Details
-
of
-
isValid
-