Record Class Email
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.Email
- Record Components:
domain- TheEmailDomainmodel object.isDisposable- Whether it is a disposable email.isFree- Whether it is a free email.isHighRisk- Whether it is a high risk email.firstSeen- A date string (e.g. 2017-04-24) to identify the date an email address was first seen by MaxMind. This is expressed using the ISO 8601 date format.
- All Implemented Interfaces:
JsonSerializable
public record Email(EmailDomain domain, Boolean isDisposable, Boolean isFree, Boolean isHighRisk, String firstSeen)
extends Record
implements JsonSerializable
This class contains minFraud response data related to the email address.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstSeenrecord component.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.UsefirstSeen()instead.final inthashCode()Returns a hash code value for this object.Returns the value of theisDisposablerecord component.isFree()Returns the value of theisFreerecord component.Returns the value of theisHighRiskrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
Email
public Email(EmailDomain domain, Boolean isDisposable, Boolean isFree, Boolean isHighRisk, String firstSeen) Compact canonical constructor that sets defaults for null values. -
Email
public Email()Constructs an instance ofEmailwith no data.
-
-
Method Details
-
getDomain
Deprecated, for removal: This API element is subject to removal in a future version.Usedomain()instead. This method will be removed in 5.0.0.- Returns:
- The
EmailDomainmodel object.
-
getFirstSeen
Deprecated, for removal: This API element is subject to removal in a future version.UsefirstSeen()instead. This method will be removed in 5.0.0.- Returns:
- A date string (e.g. 2017-04-24) to identify the date an email address was first seen by MaxMind. This is expressed using the ISO 8601 date format.
-
getFirstSeenDate
- Returns:
- A date to identify the date an email address was first seen by MaxMind.
-
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). -
domain
-
isDisposable
Returns the value of theisDisposablerecord component.- Returns:
- the value of the
isDisposablerecord component
-
isFree
-
isHighRisk
Returns the value of theisHighRiskrecord component.- Returns:
- the value of the
isHighRiskrecord component
-
firstSeen
-
domain()instead.