Enum AudioSong.MediaKind

    • Method Detail

      • values

        public static AudioSong.MediaKind[] 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 (AudioSong.MediaKind c : AudioSong.MediaKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AudioSong.MediaKind 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
      • getId

        public byte getId()
        Id.
        Returns:
        id
      • get

        public static AudioSong.MediaKind get​(int id)
        Get media kind for an id.
        Parameters:
        id - id
        Returns:
        proper media kind or UNKNOWN
      • isSupported

        public boolean isSupported()
        Indicates whether this media kind is supported in general.
        Returns:
        true or false
      • isRequiresVideo

        public boolean isRequiresVideo()
        Indicates whether this media kind requires a file format that supports video.
        Returns:
        true or false
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.json.simple.JSONAware