Record Class EmailDomain

java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.EmailDomain
Record Components:
classification - A classification of the email domain. Possible values are: business, education, government, isp_email.
firstSeen - The date an email domain was first seen by MaxMind.
risk - A risk score associated with the email domain, ranging from 0.01 to 99. Higher scores indicate higher risk.
visit - An EmailDomainVisit object containing information about an automated visit to the email domain.
volume - The activity on the email domain across the minFraud network, expressed in sightings per million. This value ranges from 0.001 to 1,000,000.
All Implemented Interfaces:
JsonSerializable

public record EmailDomain(EmailDomain.Classification classification, LocalDate firstSeen, Double risk, EmailDomainVisit visit, Double volume) extends Record implements JsonSerializable
This class contains minFraud response data related to the email domain.
  • Constructor Details

  • Method Details

    • getFirstSeen

      @Deprecated(since="4.0.0", forRemoval=true) public LocalDate 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 to identify the date an email domain 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.
    • classification

      public EmailDomain.Classification classification()
      Returns the value of the classification record component.
      Returns:
      the value of the classification record component
    • firstSeen

      public LocalDate firstSeen()
      Returns the value of the firstSeen record component.
      Returns:
      the value of the firstSeen record component
    • risk

      public Double risk()
      Returns the value of the risk record component.
      Returns:
      the value of the risk record component
    • visit

      public EmailDomainVisit visit()
      Returns the value of the visit record component.
      Returns:
      the value of the visit record component
    • volume

      public Double volume()
      Returns the value of the volume record component.
      Returns:
      the value of the volume record component