Record Class AuctionSimulator.Bidder
java.lang.Object
java.lang.Record
org.episteme.social.economics.AuctionSimulator.Bidder
- All Implemented Interfaces:
Serializable
- Enclosing class:
AuctionSimulator
public static record AuctionSimulator.Bidder(String id, Real maxWillingness, Real bidIncrement)
extends Record
implements Serializable
Model for an individual auction participant.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebidIncrementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themaxWillingnessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Bidder
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
maxWillingness
Returns the value of themaxWillingnessrecord component.- Returns:
- the value of the
maxWillingnessrecord component
-
bidIncrement
Returns the value of thebidIncrementrecord component.- Returns:
- the value of the
bidIncrementrecord component
-