Record Class QueueWarningEvent
java.lang.Object
java.lang.Record
com.zenith.event.module.QueueWarningEvent
-
Constructor Summary
ConstructorsConstructorDescriptionQueueWarningEvent(int position, boolean mention) Creates an instance of aQueueWarningEventrecord 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.booleanmention()Returns the value of thementionrecord component.intposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueWarningEvent
public QueueWarningEvent(int position, boolean mention) Creates an instance of aQueueWarningEventrecord class.- Parameters:
position- the value for thepositionrecord componentmention- the value for thementionrecord 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 thecomparemethod from their corresponding wrapper classes. -
position
public int position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
mention
public boolean mention()Returns the value of thementionrecord component.- Returns:
- the value of the
mentionrecord component
-