Enum EmbedType

    • Enum Constant Detail

      • IMAGE

        public static final EmbedType IMAGE
        A direct link to a public image
      • VIDEO

        public static final EmbedType VIDEO
        A link to a video service provider such as YouTube
      • RICH

        public static final EmbedType RICH
        A link to a service provider that can be displayed inline, but is not video (such as SlideShare)
      • LINK

        public static final EmbedType LINK
        A link to a plain web page
      • UNRESOLVED

        public static final EmbedType UNRESOLVED
        An invalid or inaccessible link
    • Method Detail

      • values

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

        public static EmbedType 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