Record Class ProfileKey
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.ProfileKey
-
Constructor Summary
ConstructorsConstructorDescriptionProfileKey(long expiresAt, byte[] publicKey, byte[] keySignature) Creates an instance of aProfileKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.byte[]Returns the value of thekeySignaturerecord component.byte[]Returns the value of thepublicKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProfileKey
public ProfileKey(long expiresAt, byte[] publicKey, byte[] keySignature) Creates an instance of aProfileKeyrecord class.- Parameters:
expiresAt- the value for theexpiresAtrecord componentpublicKey- the value for thepublicKeyrecord componentkeySignature- the value for thekeySignaturerecord 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 '=='. -
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
publicKey
public byte[] publicKey()Returns the value of thepublicKeyrecord component.- Returns:
- the value of the
publicKeyrecord component
-
keySignature
public byte[] keySignature()Returns the value of thekeySignaturerecord component.- Returns:
- the value of the
keySignaturerecord component
-