Record Class TournamentSchedulers.ScheduledMatch
java.lang.Object
java.lang.Record
org.episteme.social.sports.TournamentSchedulers.ScheduledMatch
- All Implemented Interfaces:
Serializable
- Enclosing class:
TournamentSchedulers
public static record TournamentSchedulers.ScheduledMatch(Team home, Team away, int round)
extends Record
implements Serializable
Details of a scheduled match within a tournament structure.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScheduledMatch(Team home, Team away, int round) Creates an instance of aScheduledMatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaway()Returns the value of theawayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.home()Returns the value of thehomerecord component.intround()Returns the value of theroundrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScheduledMatch
-
-
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. -
home
Returns the value of thehomerecord component.- Returns:
- the value of the
homerecord component
-
away
Returns the value of theawayrecord component.- Returns:
- the value of the
awayrecord component
-
round
public int round()Returns the value of theroundrecord component.- Returns:
- the value of the
roundrecord component
-