public class SupportedLocaleConstraint extends EnumerationConstraint.Default<Locale>
EnumerationConstraint
implementation that
checks whether a locale is in list of available locales supported by JRE.SupportedLocale
,
ConstraintFactory.supportedLocale()
EnumerationConstraint.Default<V>
Modifier and Type | Field and Description |
---|---|
static SupportedLocaleConstraint |
DEFAULT
SupportedLocaleConstraint single instance. |
constants, type
Modifier and Type | Method and Description |
---|---|
Set<Locale> |
getSortedConstants(Locale locale)
Returns set of constants in order according to the specified locale.
|
getConstants, getType
appendMessageArguments, check
validate
getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageTemplate
public static final SupportedLocaleConstraint DEFAULT
SupportedLocaleConstraint
single instance.public Set<Locale> getSortedConstants(Locale locale)
getSortedConstants
in class EnumerationConstraint<Locale>
locale
- Locale to be used for constants sorting.Copyright © 2011–2020 FoxLabs. All rights reserved.