Module org.firebirdsql.jaybird
Package org.firebirdsql.gds.ng.wire
Record Class AsynchronousChannelListener.Event
java.lang.Object
java.lang.Record
org.firebirdsql.gds.ng.wire.AsynchronousChannelListener.Event
- Enclosing interface:
- AsynchronousChannelListener
Event count notification
-
Constructor Summary
ConstructorsConstructorDescriptionEvent(int eventId, int eventCount) Creates an instance of aEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theeventCountrecord component.inteventId()Returns the value of theeventIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Event
public Event(int eventId, int eventCount) Creates an instance of aEventrecord class.- Parameters:
eventId- the value for theeventIdrecord componenteventCount- the value for theeventCountrecord 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 '=='. -
eventId
public int eventId()Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
eventCount
public int eventCount()Returns the value of theeventCountrecord component.- Returns:
- the value of the
eventCountrecord component
-