Record Class RectangleConfiguration
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.effect.configuration.RectangleConfiguration
public record RectangleConfiguration(CoordinateProvider x, CoordinateProvider y, CoordinateProvider width, CoordinateProvider height, DynamicColor colorTop, DynamicColor colorBottom)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRectangleConfiguration(CoordinateProvider x, CoordinateProvider y, CoordinateProvider width, CoordinateProvider height, DynamicColor colorTop, DynamicColor colorBottom) Creates an instance of aRectangleConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorBottomrecord component.colorTop()Returns the value of thecolorToprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.
-
Constructor Details
-
RectangleConfiguration
public RectangleConfiguration(CoordinateProvider x, CoordinateProvider y, CoordinateProvider width, CoordinateProvider height, DynamicColor colorTop, DynamicColor colorBottom) Creates an instance of aRectangleConfigurationrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentcolorTop- the value for thecolorToprecord componentcolorBottom- the value for thecolorBottomrecord 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). -
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
colorTop
Returns the value of thecolorToprecord component.- Returns:
- the value of the
colorToprecord component
-
colorBottom
Returns the value of thecolorBottomrecord component.- Returns:
- the value of the
colorBottomrecord component
-