Record Class DraftSimulator.DraftPick
java.lang.Object
java.lang.Record
org.episteme.social.sports.DraftSimulator.DraftPick
- All Implemented Interfaces:
Serializable
- Enclosing class:
DraftSimulator
public static record DraftSimulator.DraftPick(int round, int pickNumber, String team, DraftSimulator.Prospect prospect)
extends Record
implements Serializable
Details of a specific draft pick.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDraftPick(int round, int pickNumber, String team, DraftSimulator.Prospect prospect) Creates an instance of aDraftPickrecord class. -
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.intReturns the value of thepickNumberrecord component.prospect()Returns the value of theprospectrecord component.intround()Returns the value of theroundrecord component.team()Returns the value of theteamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DraftPick
Creates an instance of aDraftPickrecord class.- Parameters:
round- the value for theroundrecord componentpickNumber- the value for thepickNumberrecord componentteam- the value for theteamrecord componentprospect- the value for theprospectrecord 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. -
round
public int round()Returns the value of theroundrecord component.- Returns:
- the value of the
roundrecord component
-
pickNumber
public int pickNumber()Returns the value of thepickNumberrecord component.- Returns:
- the value of the
pickNumberrecord component
-
team
Returns the value of theteamrecord component.- Returns:
- the value of the
teamrecord component
-
prospect
Returns the value of theprospectrecord component.- Returns:
- the value of the
prospectrecord component
-