Enum SizeConstraint.SizeConstraintType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SizeConstraint.SizeConstraintType>
    Enclosing class:
    SizeConstraint

    public static enum SizeConstraint.SizeConstraintType
    extends java.lang.Enum<SizeConstraint.SizeConstraintType>
    Constraint type.

    FIXED defines fixed size which never changes. FIXED_RATIO defines fixed asset size to banner size ratio which never changes. PREFERRED_RATIO defines asset size to banner size ratio which may change to fit real image size.

    • Method Detail

      • values

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

        public static SizeConstraint.SizeConstraintType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null