Package top.untold.frostlumen.core.event
Record Class FrameBufferSizeChangeEvent
java.lang.Object
java.lang.Record
top.untold.frostlumen.core.event.FrameBufferSizeChangeEvent
public record FrameBufferSizeChangeEvent(int oldWidth, int oldHeight, int newWidth, int newHeight)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFrameBufferSizeChangeEvent(int oldWidth, int oldHeight, int newWidth, int newHeight) Creates an instance of aFrameBufferSizeChangeEventrecord 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.intReturns the value of thenewHeightrecord component.intnewWidth()Returns the value of thenewWidthrecord component.intReturns the value of theoldHeightrecord component.intoldWidth()Returns the value of theoldWidthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FrameBufferSizeChangeEvent
public FrameBufferSizeChangeEvent(int oldWidth, int oldHeight, int newWidth, int newHeight) Creates an instance of aFrameBufferSizeChangeEventrecord class.- Parameters:
oldWidth- the value for theoldWidthrecord componentoldHeight- the value for theoldHeightrecord componentnewWidth- the value for thenewWidthrecord componentnewHeight- the value for thenewHeightrecord 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 '=='. -
oldWidth
public int oldWidth()Returns the value of theoldWidthrecord component.- Returns:
- the value of the
oldWidthrecord component
-
oldHeight
public int oldHeight()Returns the value of theoldHeightrecord component.- Returns:
- the value of the
oldHeightrecord component
-
newWidth
public int newWidth()Returns the value of thenewWidthrecord component.- Returns:
- the value of the
newWidthrecord component
-
newHeight
public int newHeight()Returns the value of thenewHeightrecord component.- Returns:
- the value of the
newHeightrecord component
-