Record Class ScoreIpAddress
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.ScoreIpAddress
- Record Components:
risk- The risk associated with the IP address.
- All Implemented Interfaces:
JsonSerializable, IpAddressInterface
public record ScoreIpAddress(Double risk)
extends Record
implements IpAddressInterface, JsonSerializable
This class contains the IP address risk.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofScoreIpAddresswith no data.ScoreIpAddress(Double risk) Creates an instance of aScoreIpAddressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getRisk()Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.risk()Returns the value of theriskrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
ScoreIpAddress
public ScoreIpAddress()Constructs an instance ofScoreIpAddresswith no data. -
ScoreIpAddress
-
-
Method Details
-
getRisk
Deprecated, for removal: This API element is subject to removal in a future version.Userisk()instead. This method will be removed in 5.0.0.- Specified by:
getRiskin interfaceIpAddressInterface- Returns:
- The risk associated with the IP address.
-
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). -
risk
Returns the value of theriskrecord component.- Specified by:
riskin interfaceIpAddressInterface- Returns:
- the value of the
riskrecord component
-
risk()instead.