Record Class ExprRect
java.lang.Object
java.lang.Record
dev.pfaff.altargui.ffi.ExprRect
- All Implemented Interfaces:
IRect<Expression>
public record ExprRect(Expression x, Expression y, Expression width, Expression height)
extends Record
implements IRect<Expression>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExprRect
(double x, double y, double width, double height) ExprRect
(Expression x, Expression y, Expression width, Expression height) Creates an instance of aExprRect
record class.ExprRect
(ToExpression x, ToExpression y, ToExpression width, ToExpression height) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.height()
Returns the value of theheight
record component.final String
toString()
Returns a string representation of this record class.width()
Returns the value of thewidth
record component.withHeight
(Expression height) withWidth
(Expression width) withX
(Expression x) withY
(Expression y) x()
Returns the value of thex
record component.y()
Returns the value of they
record component.
-
Field Details
-
ZERO
-
-
Constructor Details
-
ExprRect
public ExprRect(double x, double y, double width, double height) -
ExprRect
-
ExprRect
-
ExprRect
Creates an instance of aExprRect
record class.- Parameters:
x
- the value for thex
record componenty
- the value for they
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record component
-
-
Method Details
-
withX
- Specified by:
withX
in interfaceIRect<Expression>
-
withY
- Specified by:
withY
in interfaceIRect<Expression>
-
withWidth
- Specified by:
withWidth
in interfaceIRect<Expression>
-
withHeight
- Specified by:
withHeight
in interfaceIRect<Expression>
-
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)
. -
x
Returns the value of thex
record component.- Specified by:
x
in interfaceIRect<Expression>
- Returns:
- the value of the
x
record component
-
y
Returns the value of they
record component.- Specified by:
y
in interfaceIRect<Expression>
- Returns:
- the value of the
y
record component
-
width
Returns the value of thewidth
record component.- Specified by:
width
in interfaceIRect<Expression>
- Returns:
- the value of the
width
record component
-
height
Returns the value of theheight
record component.- Specified by:
height
in interfaceIRect<Expression>
- Returns:
- the value of the
height
record component
-