T - The context object which will be used to resolve the localepublic interface LocaleResolver<T> extends Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.util.Locale> |
resolve(T context)
Resolves the locale for the given context.
|
java.util.Locale |
resolveOrDefault(T context)
Resolves the local or returns the default locale.
|