Record Class ResponsiveBuilder.GenerateResult
java.lang.Object
java.lang.Record
cloud.opencode.base.image.responsive.ResponsiveBuilder.GenerateResult
- Record Components:
path- the output file path | 输出文件路径variant- the variant that was generated | 生成的变体format- the image format used | 使用的图片格式fileSize- the file size in bytes | 文件大小(字节)
- Enclosing class:
ResponsiveBuilder
public static record ResponsiveBuilder.GenerateResult(Path path, ResponsiveBuilder.Variant variant, ImageFormat format, long fileSize)
extends Record
Result of a single variant generation, containing the output path, variant info, format, and file size.
单个变体生成的结果,包含输出路径、变体信息、格式和文件大小。
- Since:
- JDK 25, opencode-base-image V2.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionGenerateResult(Path path, ResponsiveBuilder.Variant variant, ImageFormat format, long fileSize) Compact constructor with validation. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfileSize()Returns the value of thefileSizerecord component.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
GenerateResult
public GenerateResult(Path path, ResponsiveBuilder.Variant variant, ImageFormat format, long fileSize) Compact constructor with validation. 带验证的紧凑构造器。
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
path
-
variant
-
format
-
fileSize
-