Interface MessageKey
- All Superinterfaces:
RecordKey,StandardKey
- All Known Implementing Classes:
InvalidMessageKey,ValidMessageKey
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.
-
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<ValidMessageKey> isValid()static <E extends Enum<E>>
MessageKeyof(E key) static MessageKey
-
Method Details
-
of
-
of
-
isValid
-