public final class SupportedTimeZoneConstraint extends EnumerationConstraint.Default<TimeZone>
EnumerationConstraint
implementation that
checks whether a time zone is in list of available time zones supported by
JRE.
Note that subset of supported time zones are checked by this constraint.
SupportedTimeZone
,
ConstraintFactory.supportedTimeZone()
EnumerationConstraint.Default<V>
Modifier and Type | Field and Description |
---|---|
static SupportedTimeZoneConstraint |
DEFAULT
SupportedTimeZoneConstraint single instance. |
constants, type
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Prints time zones for the locale specified as command line argument.
|
getConstants, getType
appendMessageArguments, check, getSortedConstants
validate
getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageTemplate
public static final SupportedTimeZoneConstraint DEFAULT
SupportedTimeZoneConstraint
single instance.public static void main(String[] args)
args
- Command line arguments.Copyright © 2011–2020 FoxLabs. All rights reserved.