Record Class GameTheorySolver.Payoff
java.lang.Object
java.lang.Record
org.episteme.social.economics.GameTheorySolver.Payoff
- All Implemented Interfaces:
Serializable
- Enclosing class:
GameTheorySolver
public static record GameTheorySolver.Payoff(Real playerA, Real playerB)
extends Record
implements Serializable
Data structure for 2-player payoff entries.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
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.playerA()Returns the value of theplayerArecord component.playerB()Returns the value of theplayerBrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Payoff
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
playerA
Returns the value of theplayerArecord component.- Returns:
- the value of the
playerArecord component
-
playerB
Returns the value of theplayerBrecord component.- Returns:
- the value of the
playerBrecord component
-