Record Class AuctionSimulator.Bid
java.lang.Object
java.lang.Record
org.episteme.social.economics.AuctionSimulator.Bid
- All Implemented Interfaces:
Serializable
- Enclosing class:
AuctionSimulator
public static record AuctionSimulator.Bid(String bidderId, Real amount, int round)
extends Record
implements Serializable
Individual bid entry in an auction history.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.bidderId()Returns the value of thebidderIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intround()Returns the value of theroundrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Bid
-
-
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. -
bidderId
Returns the value of thebidderIdrecord component.- Returns:
- the value of the
bidderIdrecord component
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
round
public int round()Returns the value of theroundrecord component.- Returns:
- the value of the
roundrecord component
-