Package com.pocketcombats.openskill
Record Class RatingModelConfig.Balance
java.lang.Object
java.lang.Record
com.pocketcombats.openskill.RatingModelConfig.Balance
- All Implemented Interfaces:
Serializable
- Enclosing class:
RatingModelConfig
public static record RatingModelConfig.Balance(boolean enable, double z, double alpha, double target)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBalance(boolean enable, double z, double alpha, double target) Creates an instance of aBalancerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublealpha()Returns the value of thealpharecord component.booleanenable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubletarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
Balance
public Balance(boolean enable, double z, double alpha, double target) Creates an instance of aBalancerecord class.- Parameters:
enable- the value for theenablerecord componentz- the value for thezrecord componentalpha- the value for thealpharecord componenttarget- the value for thetargetrecord 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. All components in this record class are compared with '=='. -
enable
public boolean enable()Returns the value of theenablerecord component.- Returns:
- the value of the
enablerecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
alpha
public double alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
target
public double target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-