Enum Class Region

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

public enum Region extends Enum<Region> implements Displayable, org.meeuw.i18n.regions.Region
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 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)
    • getCode

      public String getCode()
      Specified by:
      getCode in interface org.meeuw.i18n.regions.Region
    • getType

      public org.meeuw.i18n.regions.Region.Type getType()
      Specified by:
      getType in interface org.meeuw.i18n.regions.Region
    • getName

      public String getName()
      Specified by:
      getName in interface org.meeuw.i18n.regions.Region
    • getIcon

      public Optional<URI> getIcon()
      Specified by:
      getIcon in interface Displayable
      Specified by:
      getIcon in interface org.meeuw.i18n.regions.Region
    • getDisplayName

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