Enum Class ContentRating

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

public enum ContentRating extends Enum<ContentRating> implements Displayable
A NICAM content rating
Author:
Michiel Meeuwissen
  • Enum Constant Details

  • Method Details

    • values

      public static ContentRating[] 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 ContentRating 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
    • toChar

      public char toChar()
    • valueOf

      public static ContentRating valueOf(char c)
      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:
      c - 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
    • valueOf

      public static List<ContentRating> valueOf(List<String> list)
      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:
      list - 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
    • getDisplayName

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

      public Optional<URI> getIcon()
      Specified by:
      getIcon in interface Displayable
    • getIconClass

      public Optional<String> getIconClass()
      Specified by:
      getIconClass in interface Displayable