Record Class EncryptedCredentials
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.EncryptedCredentials
- All Implemented Interfaces:
Serializable,ApiResult
public record EncryptedCredentials(String data, String hash, String secret)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedCredentials(String data, String hash, String secret) Creates an instance of aEncryptedCredentialsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.secret()Returns the value of thesecretrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EncryptedCredentials
Creates an instance of aEncryptedCredentialsrecord class.- Parameters:
data- the value for thedatarecord componenthash- the value for thehashrecord componentsecret- the value for thesecretrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-