Enum Class ImageSize

java.lang.Object
java.lang.Enum<ImageSize>
xyz.felh.openai.image.ImageSize
All Implemented Interfaces:
Serializable, Comparable<ImageSize>, Constable

public enum ImageSize extends Enum<ImageSize>
  • Enum Constant Details

    • R_256X256

      public static final ImageSize R_256X256
    • R_512X512

      public static final ImageSize R_512X512
    • R_1024X1024

      public static final ImageSize R_1024X1024
    • R_1792X1024

      public static final ImageSize R_1792X1024
    • R_1024X1792

      public static final ImageSize R_1024X1792
  • Method Details

    • values

      public static ImageSize[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ImageSize valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public String value()
    • findByValue

      public static ImageSize findByValue(String value)