Enum Class Region

java.lang.Object
java.lang.Enum<Region>
nl.vpro.domain.media.Region
All Implemented Interfaces:
Serializable, Comparable<Region>, java.lang.constant.Constable, Displayable

public enum Region extends Enum<Region> implements Displayable
The region as used in GeoRestriction. The order wants to be from more to less restrictive.
  • Enum Constant Details

    • NL

      public static final Region NL
      Netherlands
    • NLBES

      public static final Region NLBES
      Netherlands and communities in the Caribbean
      Since:
      5.6
    • NLALL

      public static final Region NLALL
      Netherlands and communities in the Caribbean and Curaçao, St. Maarten and Aruba
      Since:
      5.6
    • BENELUX

      @Deprecated public static final Region BENELUX
      Deprecated.
      Not supported by VMV
      Belgium, Netherlands and Luxemburg
    • EUROPE

      public static final Region EUROPE
      Europe
      Since:
      5.6
    • EU

      public static final Region EU
      European Union incl. BES-gemeentes, Curaçao, Sint Maarten en Aruba
      Since:
      5.6
    • UNIVERSE

      public static final Region 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

      public static final Region[] RESTRICTED_REGIONS
  • Method Details

    • values

      public static Region[] 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

      public static Region valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • valueOfOrNull

      public static Region valueOfOrNull(String v)
    • valueOfOrNullOrIllegalArgument

      public static Region valueOfOrNullOrIllegalArgument(String v)
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Displayable