Package top.untold.frostlumen.core.event
Record Class WindowMoveEvent
java.lang.Object
java.lang.Record
top.untold.frostlumen.core.event.WindowMoveEvent
-
Constructor Summary
ConstructorsConstructorDescriptionWindowMoveEvent(int oldX, int oldY, int newX, int newY) Creates an instance of aWindowMoveEventrecord class. -
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.intnewX()Returns the value of thenewXrecord component.intnewY()Returns the value of thenewYrecord component.intoldX()Returns the value of theoldXrecord component.intoldY()Returns the value of theoldYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WindowMoveEvent
public WindowMoveEvent(int oldX, int oldY, int newX, int newY) Creates an instance of aWindowMoveEventrecord class.- Parameters:
oldX- the value for theoldXrecord componentoldY- the value for theoldYrecord componentnewX- the value for thenewXrecord componentnewY- the value for thenewYrecord 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 with '=='. -
oldX
public int oldX()Returns the value of theoldXrecord component.- Returns:
- the value of the
oldXrecord component
-
oldY
public int oldY()Returns the value of theoldYrecord component.- Returns:
- the value of the
oldYrecord component
-
newX
public int newX()Returns the value of thenewXrecord component.- Returns:
- the value of the
newXrecord component
-
newY
public int newY()Returns the value of thenewYrecord component.- Returns:
- the value of the
newYrecord component
-