Record Class ResponsiveBuilder.Variant
java.lang.Object
java.lang.Record
cloud.opencode.base.image.responsive.ResponsiveBuilder.Variant
- Record Components:
width- the target width in pixels (must be positive) | 目标宽度(像素,必须为正数)height- the target height in pixels (must be positive) | 目标高度(像素,必须为正数)name- the variant name used in output filenames | 用于输出文件名的变体名称
- Enclosing class:
ResponsiveBuilder
Variant configuration describing a target image size and its name.
变体配置,描述目标图片尺寸及其名称。
- Since:
- JDK 25, opencode-base-image V2.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Variant
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. -
width
-
height
-
name
-