Enum Media

  • All Implemented Interfaces:
    Serializable, Comparable<Media>

    public enum Media
    extends Enum<Media>

    The media type you want to search for. For example: movie.

    iTunes default is all.

    • Enum Constant Detail

      • MOVIE

        public static final Media MOVIE
      • PODCAST

        public static final Media PODCAST
      • MUSIC

        public static final Media MUSIC
      • MUSIC_VIDEO

        public static final Media MUSIC_VIDEO
      • AUDIOBOOK

        public static final Media AUDIOBOOK
      • SHORT_FILM

        public static final Media SHORT_FILM
      • TV_SHOW

        public static final Media TV_SHOW
      • SOFTWARE

        public static final Media SOFTWARE
      • EBOOK

        public static final Media EBOOK
      • ALL

        public static final Media ALL
    • Method Detail

      • values

        public static Media[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Media c : Media.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Media valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()
      • getEntities

        public Set<Entity> getEntities()