Enum PictureVariantScreenDensity

    • Method Detail

      • values

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

        public static PictureVariantScreenDensity 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
      • getByName

        public static PictureVariantScreenDensity getByName​(String name)
        Get enumeration value by given name
        Parameters:
        name - the literal name of searching enumeration value, can be null
        Returns:
        enumeration value by given name, or null if no value found
      • getScale

        public int getScale()
        Platform scale value
        Returns:
        the platform scale value
      • getName

        public String getName()
        Name
        Returns:
        the String name, never null
      • getLiteralName

        public String getLiteralName()
        Literal name
        Returns:
        the String literal name, never null