Package ac.boar.anticheat.ack.types
Record Class StaticSeatAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.StaticSeatAck
- All Implemented Interfaces:
Acknowledgment
public record StaticSeatAck(StaticSeatTracker.Actor actor, StaticSeatAck.Kind kind, long epoch)
extends Record
implements Acknowledgment
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStaticSeatAck(StaticSeatTracker.Actor actor, StaticSeatAck.Kind kind) StaticSeatAck(StaticSeatTracker.Actor actor, StaticSeatAck.Kind kind, long epoch) Creates an instance of aStaticSeatAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.longepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StaticSeatAck
-
StaticSeatAck
Creates an instance of aStaticSeatAckrecord class.- Parameters:
actor- the value for theactorrecord componentkind- the value for thekindrecord componentepoch- the value for theepochrecord 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 '=='. -
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
epoch
public long epoch()Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-