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 aEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theeventCount
record component.int
eventId()
Returns the value of theeventId
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Event
public Event(int eventId, int eventCount) Creates an instance of aEvent
record class.- Parameters:
eventId
- the value for theeventId
record componenteventCount
- the value for theeventCount
record 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 theeventId
record component.- Returns:
- the value of the
eventId
record component
-
eventCount
public int eventCount()Returns the value of theeventCount
record component.- Returns:
- the value of the
eventCount
record component
-