Record Class InteractionChain.CallState
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.entity.InteractionChain.CallState
- Enclosing class:
InteractionChain
private static record InteractionChain.CallState(RootInteraction rootInteraction, int operationCounter)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theoperationCounterrecord component.private final RootInteractionThe field for therootInteractionrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCallState(RootInteraction rootInteraction, int operationCounter) Creates an instance of aCallStaterecord 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 theoperationCounterrecord component.Returns the value of therootInteractionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
rootInteraction
The field for therootInteractionrecord component. -
operationCounter
private final int operationCounterThe field for theoperationCounterrecord component.
-
-
Constructor Details
-
CallState
Creates an instance of aCallStaterecord class.- Parameters:
rootInteraction- the value for therootInteractionrecord componentoperationCounter- the value for theoperationCounterrecord 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 '=='. -
rootInteraction
Returns the value of therootInteractionrecord component.- Returns:
- the value of the
rootInteractionrecord component
-
operationCounter
public int operationCounter()Returns the value of theoperationCounterrecord component.- Returns:
- the value of the
operationCounterrecord component
-