Record Class AccountRefiller.ChallengeAnswer
java.lang.Object
java.lang.Record
fr.univ_eiffel.legotools.factory.api.AccountRefiller.ChallengeAnswer
- Record Components:
data_prefix- Le préfixe de données original.hash_prefix- Le préfixe de hash original.answer- La solution trouvée (Hexadécimal).
- Enclosing class:
AccountRefiller
public static record AccountRefiller.ChallengeAnswer(String data_prefix, String hash_prefix, String answer)
extends Record
Structure représentant la réponse à envoyer au serveur.
-
Constructor Summary
ConstructorsConstructorDescriptionChallengeAnswer(String data_prefix, String hash_prefix, String answer) Creates an instance of aChallengeAnswerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanswer()Returns the value of theanswerrecord component.Returns the value of thedata_prefixrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehash_prefixrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChallengeAnswer
Creates an instance of aChallengeAnswerrecord class.- Parameters:
data_prefix- the value for thedata_prefixrecord componenthash_prefix- the value for thehash_prefixrecord componentanswer- the value for theanswerrecord 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_prefix
Returns the value of thedata_prefixrecord component.- Returns:
- the value of the
data_prefixrecord component
-
hash_prefix
Returns the value of thehash_prefixrecord component.- Returns:
- the value of the
hash_prefixrecord component
-
answer
Returns the value of theanswerrecord component.- Returns:
- the value of the
answerrecord component
-