Record Class ProfileKey
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.ProfileKey
-
Constructor Summary
ConstructorDescriptionProfileKey
(long expiresAt, byte[] publicKey, byte[] keySignature) Creates an instance of aProfileKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpiresAt
record component.final int
hashCode()
Returns a hash code value for this object.byte[]
Returns the value of thekeySignature
record component.byte[]
Returns the value of thepublicKey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ProfileKey
public ProfileKey(long expiresAt, byte[] publicKey, byte[] keySignature) Creates an instance of aProfileKey
record class.- Parameters:
expiresAt
- the value for theexpiresAt
record componentpublicKey
- the value for thepublicKey
record componentkeySignature
- the value for thekeySignature
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expiresAt
public long expiresAt()Returns the value of theexpiresAt
record component.- Returns:
- the value of the
expiresAt
record component
-
publicKey
public byte[] publicKey()Returns the value of thepublicKey
record component.- Returns:
- the value of the
publicKey
record component
-
keySignature
public byte[] keySignature()Returns the value of thekeySignature
record component.- Returns:
- the value of the
keySignature
record component
-