Package org.incendo.cloud.translations
Interface LocaleExtractor<C>
- Type Parameters:
C- command sender type
Extractor that extracts
locales from command senders.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for aLocaleExtractorthat delegates to functions based on command sender type. -
Method Summary
Modifier and TypeMethodDescriptionstatic <C> LocaleExtractor.Builder<C>builder()Returns a newLocaleExtractor.Builder.Extracts the locale from the givenrecipient.
-
Method Details
-
extract
Extracts the locale from the givenrecipient.- Parameters:
recipient- recipient to extract locale from- Returns:
- the extracted locale
-
builder
Returns a newLocaleExtractor.Builder.- Type Parameters:
C- command sender type- Returns:
- new builder
-