Class CommandMessageCatalog
java.lang.Object
tech.guilhermekaua.spigotboot.commands.message.CommandMessageCatalog
Opt-in, read-only catalog of every
CommandMessageKey declared by the registered
argument resolvers. Useful for programmatic enumeration; performs no logging.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a catalog from the keys declared by the currently registered argument resolvers. -
Method Summary
Modifier and TypeMethodDescriptionall()Returns an unmodifiable view of all declared keys.Finds the first key whoseCommandMessageKey.id()matches the given id.
-
Constructor Details
-
CommandMessageCatalog
Creates a catalog from the keys declared by the currently registered argument resolvers.- Parameters:
registry- the resolver registry whose declared message keys are aggregated; must not benull- Throws:
NullPointerException- ifregistryisnull
-
-
Method Details
-
all
Returns an unmodifiable view of all declared keys.- Returns:
- all declared message keys
-
find
Finds the first key whoseCommandMessageKey.id()matches the given id.- Parameters:
id- the key id to look up; must not benull- Returns:
- the first key with a matching id, if any
- Throws:
NullPointerException- ifidisnull
-