Record Class AbstractFutureManager.PendingFutureInfo
java.lang.Object
java.lang.Record
org.misaka.api.common.network.future.AbstractFutureManager.PendingFutureInfo
- Enclosing class:
AbstractFutureManager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPendingFutureInfo(Consumer<?> callback, int expectedResponsePacketId, long expireTime) Creates an instance of aPendingFutureInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionConsumer<?> callback()Returns the value of thecallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpectedResponsePacketIdrecord component.longReturns the value of theexpireTimerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PendingFutureInfo
Creates an instance of aPendingFutureInforecord class.- Parameters:
callback- the value for thecallbackrecord componentexpectedResponsePacketId- the value for theexpectedResponsePacketIdrecord componentexpireTime- the value for theexpireTimerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-
expectedResponsePacketId
public int expectedResponsePacketId()Returns the value of theexpectedResponsePacketIdrecord component.- Returns:
- the value of the
expectedResponsePacketIdrecord component
-
expireTime
public long expireTime()Returns the value of theexpireTimerecord component.- Returns:
- the value of the
expireTimerecord component
-