Package com.unfbx.chatgpt.entity.images
Enum SizeEnum
- java.lang.Object
-
- java.lang.Enum<SizeEnum>
-
- com.unfbx.chatgpt.entity.images.SizeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<SizeEnum>
public enum SizeEnum extends Enum<SizeEnum> implements Serializable
描述:生成图片尺寸大小- Author:
- https:www.unfbx.com 2023-02-15
-
-
Enum Constant Summary
Enum Constants Enum Constant Description size_1024size_1024_1792size_1792_1024size_256size_512
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SizeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static SizeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static SizeEnum[] 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 (SizeEnum c : SizeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SizeEnum 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 nameNullPointerException- if the argument is null
-
-