Record Class ResizeObserver.Dimensions
java.lang.Object
java.lang.Record
org.vaadin.firitin.util.ResizeObserver.Dimensions
- Enclosing class:
ResizeObserver
public static record ResizeObserver.Dimensions(int x, int y, int width, int height, int top, int right, int bottom, int left)
extends Record
-
Constructor Summary
ConstructorDescriptionDimensions
(int x, int y, int width, int height, int top, int right, int bottom, int left) Creates an instance of aDimensions
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bottom()
Returns the value of thebottom
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.int
left()
Returns the value of theleft
record component.int
right()
Returns the value of theright
record component.int
top()
Returns the value of thetop
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.int
x()
Returns the value of thex
record component.int
y()
Returns the value of they
record component.
-
Constructor Details
-
Dimensions
public Dimensions(int x, int y, int width, int height, int top, int right, int bottom, int left) Creates an instance of aDimensions
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 componenttop
- the value for thetop
record componentright
- the value for theright
record componentbottom
- the value for thebottom
record componentleft
- the value for theleft
record 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 with thecompare
method from their corresponding wrapper classes. -
x
public int x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
public int y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
top
public int top()Returns the value of thetop
record component.- Returns:
- the value of the
top
record component
-
right
public int right()Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-
bottom
public int bottom()Returns the value of thebottom
record component.- Returns:
- the value of the
bottom
record component
-
left
public int left()Returns the value of theleft
record component.- Returns:
- the value of the
left
record component
-