Record Class RiskScoreReason
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.RiskScoreReason
- Record Components:
multiplier- The factor by which the risk score is increased (if the value is greater than 1) or decreased (if the value is less than 1) for given risk reason(s). Multipliers greater than 1.5 and less than 0.66 are considered significant and lead to risk reason(s) being present.reasons- An unmodifiable list containing objects that describe one of the reasons for the multiplier. This will be an empty list if there are no reasons.
- All Implemented Interfaces:
JsonSerializable
public record RiskScoreReason(Double multiplier, List<Reason> reasons)
extends Record
implements JsonSerializable
This class represents a risk score multiplier and reasons for that multiplier.
-
Constructor Summary
ConstructorsConstructorDescriptionRiskScoreReason(Double multiplier, List<Reason> reasons) Compact canonical constructor that ensures immutability. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Usereasons()instead.final inthashCode()Returns a hash code value for this object.Returns the value of themultiplierrecord component.reasons()Returns the value of thereasonsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
RiskScoreReason
-
-
Method Details
-
getMultiplier
Deprecated, for removal: This API element is subject to removal in a future version.Usemultiplier()instead. This method will be removed in 5.0.0.- Returns:
- The factor by which the risk score is increased (if the value is greater than 1) or decreased (if the value is less than 1) for given risk reason(s). Multipliers greater than 1.5 and less than 0.66 are considered significant and lead to risk reason(s) being present.
-
getReasons
Deprecated, for removal: This API element is subject to removal in a future version.Usereasons()instead. This method will be removed in 5.0.0.- Returns:
- An unmodifiable list containing objects that describe one of the reasons for the multiplier. This will be an empty list if there are no reasons.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
multiplier
Returns the value of themultiplierrecord component.- Returns:
- the value of the
multiplierrecord component
-
reasons
-
multiplier()instead.