Record Class VoteCapability.Proposal
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.capabilities.vote.VoteCapability.Proposal
- Record Components:
proposalId- unique proposal identifierquestion- the question being decidedoptions- the allowed optionsquorum- how many distinct voters close the decision
- Enclosing class:
VoteCapability
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.options()Returns the value of theoptionsrecord component.Returns the value of theproposalIdrecord component.question()Returns the value of thequestionrecord component.intquorum()Returns the value of thequorumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Proposal
Creates an instance of aProposalrecord class.- Parameters:
proposalId- the value for theproposalIdrecord componentquestion- the value for thequestionrecord componentoptions- the value for theoptionsrecord componentquorum- the value for thequorumrecord 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. -
proposalId
Returns the value of theproposalIdrecord component.- Returns:
- the value of the
proposalIdrecord component
-
question
-
options
-
quorum
-