Record Class TextBackgroundBlock
java.lang.Object
java.lang.Record
io.meeds.layout.model.TextBackgroundBlock
public record TextBackgroundBlock(Boolean enabled, BackgroundMode mode, String color, String from, String to, Integer ratio, String direction, String effect, BackgroundImageBlock image, SidesBlock padding, CornersBlock corners)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextBackgroundBlock(Boolean enabled, BackgroundMode mode, String color, String from, String to, Integer ratio, String direction, String effect, BackgroundImageBlock image, SidesBlock padding, CornersBlock corners) Creates an instance of aTextBackgroundBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.corners()Returns the value of thecornersrecord component.Returns the value of thedirectionrecord component.effect()Returns the value of theeffectrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.mode()Returns the value of themoderecord component.padding()Returns the value of thepaddingrecord component.ratio()Returns the value of theratiorecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextBackgroundBlock
public TextBackgroundBlock(Boolean enabled, BackgroundMode mode, String color, String from, String to, Integer ratio, String direction, String effect, BackgroundImageBlock image, SidesBlock padding, CornersBlock corners) Creates an instance of aTextBackgroundBlockrecord class.- Parameters:
enabled- the value for theenabledrecord componentmode- the value for themoderecord componentcolor- the value for thecolorrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentratio- the value for theratiorecord componentdirection- the value for thedirectionrecord componenteffect- the value for theeffectrecord componentimage- the value for theimagerecord componentpadding- the value for thepaddingrecord componentcorners- the value for thecornersrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
ratio
Returns the value of theratiorecord component.- Returns:
- the value of the
ratiorecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
padding
Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
corners
Returns the value of thecornersrecord component.- Returns:
- the value of the
cornersrecord component
-