Record Class Content.ChallengeResult
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.content.Content.ChallengeResult
- Record Components:
holder- the challenged memberroot- the root it claims to holdpicks- the picks namedproven- the picks whose bytes arrived and verified by CIDpassed- whether every pick verified within the deadlinereason- why the challenge failed, or null when it passedelapsed- milliseconds from the send to the outcome
- Enclosing class:
Content
-
Constructor Summary
ConstructorsConstructorDescriptionChallengeResult(PeerId holder, String root, int picks, int proven, boolean passed, String reason, long elapsed) Creates an instance of aChallengeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongelapsed()Returns the value of theelapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.holder()Returns the value of theholderrecord component.booleanpassed()Returns the value of thepassedrecord component.intpicks()Returns the value of thepicksrecord component.intproven()Returns the value of theprovenrecord component.reason()Returns the value of thereasonrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChallengeResult
public ChallengeResult(PeerId holder, String root, int picks, int proven, boolean passed, String reason, long elapsed) Creates an instance of aChallengeResultrecord class.- Parameters:
holder- the value for theholderrecord componentroot- the value for therootrecord componentpicks- the value for thepicksrecord componentproven- the value for theprovenrecord componentpassed- the value for thepassedrecord componentreason- the value for thereasonrecord componentelapsed- the value for theelapsedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
holder
-
root
-
picks
-
proven
-
passed
-
reason
-
elapsed
-