Record Class Email

java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.Email
Record Components:
domain - The EmailDomain model 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 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 of Email with no data.
  • Method Details

    • getDomain

      @Deprecated(since="4.0.0", forRemoval=true) public EmailDomain getDomain()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use domain() instead. This method will be removed in 5.0.0.
      Returns:
      The EmailDomain model object.
    • getFirstSeen

      @Deprecated(since="4.0.0", forRemoval=true) public String getFirstSeen()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use firstSeen() 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

      public LocalDate getFirstSeenDate()
      Returns:
      A date to identify the date an email address was first seen by MaxMind.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • domain

      public EmailDomain domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • isDisposable

      public Boolean isDisposable()
      Returns the value of the isDisposable record component.
      Returns:
      the value of the isDisposable record component
    • isFree

      public Boolean isFree()
      Returns the value of the isFree record component.
      Returns:
      the value of the isFree record component
    • isHighRisk

      public Boolean isHighRisk()
      Returns the value of the isHighRisk record component.
      Returns:
      the value of the isHighRisk record component
    • firstSeen

      public String firstSeen()
      Returns the value of the firstSeen record component.
      Returns:
      the value of the firstSeen record component