Record Class Config.ImageConfig
java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.Config.ImageConfig
- Record Components:
aspectRatio- The aspect ratio of the generated image.imageSize- The size of the generated image.
- Enclosing class:
Config
public static record Config.ImageConfig(Config.AspectRatio aspectRatio, Config.ImageSize imageSize)
extends Record
Configuration for image generation.
-
Constructor Summary
ConstructorsConstructorDescriptionImageConfig(Config.AspectRatio aspectRatio, Config.ImageSize imageSize) Creates an instance of aImageConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaspectRatiorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImageConfig
Creates an instance of aImageConfigrecord class.- Parameters:
aspectRatio- the value for theaspectRatiorecord componentimageSize- the value for theimageSizerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
aspectRatio
Returns the value of theaspectRatiorecord component.- Returns:
- the value of the
aspectRatiorecord component
-
imageSize
Returns the value of theimageSizerecord component.- Returns:
- the value of the
imageSizerecord component
-