Package com.pocketcombats.openskill.data
Record Class RatingAdjustment<T>
java.lang.Object
java.lang.Record
com.pocketcombats.openskill.data.RatingAdjustment<T>
-
Constructor Summary
ConstructorsConstructorDescriptionRatingAdjustment(T playerId, double mu, double sigma) Creates an instance of aRatingAdjustmentrecord 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.doublemu()Returns the value of themurecord component.playerId()Returns the value of theplayerIdrecord component.doublesigma()Returns the value of thesigmarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RatingAdjustment
Creates an instance of aRatingAdjustmentrecord class.- Parameters:
playerId- the value for theplayerIdrecord componentmu- the value for themurecord componentsigma- the value for thesigmarecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
playerId
Returns the value of theplayerIdrecord component.- Returns:
- the value of the
playerIdrecord component
-
mu
public double mu()Returns the value of themurecord component.- Returns:
- the value of the
murecord component
-
sigma
public double sigma()Returns the value of thesigmarecord component.- Returns:
- the value of the
sigmarecord component
-