Package nl.vpro.domain.media
Enum Class Region
- All Implemented Interfaces:
Serializable
,Comparable<Region>
,java.lang.constant.Constable
,Displayable
The region as used in
GeoRestriction
. The order wants to be from more to less restrictive.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Not supported by VMVEuropean Union incl.EuropeNetherlandsNetherlands and communities in the Caribbean and Curaçao, St.Netherlands and communities in the CaribbeanIt can be handy to have a region value that effectively doesn't restrict anything. -
Field Summary
FieldsFields inherited from interface nl.vpro.i18n.Displayable
NULL
-
Method Summary
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface nl.vpro.i18n.Displayable
display, getDisplayName, getIcon, getIconClass, getPluralDisplayName, getPluralDisplayName
-
Enum Constant Details
-
NL
Netherlands -
NLBES
Netherlands and communities in the Caribbean- Since:
- 5.6
-
NLALL
Netherlands and communities in the Caribbean and Curaçao, St. Maarten and Aruba- Since:
- 5.6
-
BENELUX
Deprecated.Not supported by VMVBelgium, Netherlands and Luxemburg -
EUROPE
Europe- Since:
- 5.6
-
EU
European Union incl. BES-gemeentes, Curaçao, Sint Maarten en Aruba- Since:
- 5.6
-
UNIVERSE
It can be handy to have a region value that effectively doesn't restrict anything. This way there is no need for n null checks and things like that.- Since:
- 7.6
-
-
Field Details
-
RESTRICTED_REGIONS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOfOrNull
-
valueOfOrNullOrIllegalArgument
-
getDisplayName
- Specified by:
getDisplayName
in interfaceDisplayable
-