Record Class AnonymizerFeed

java.lang.Object
java.lang.Record
com.maxmind.geoip2.record.AnonymizerFeed
Record Components:
confidence - A score ranging from 1 to 99 that represents our percent confidence that the network is currently part of this anonymizer feed. This is only available from the GeoIP Insights web service.
networkLastSeen - The last day that the network was sighted in our analysis of this anonymizer feed. This is only available from the GeoIP Insights web service.
providerName - The name of the provider associated with the network in this anonymizer feed. This is only available from the GeoIP Insights web service.
All Implemented Interfaces:
JsonSerializable

public record AnonymizerFeed(Integer confidence, LocalDate networkLastSeen, String providerName) extends Record implements JsonSerializable

Contains data for one type of anonymizer detection, currently residential proxies. Additional feeds, such as VPNs, mobile networks, and hosting or datacenter providers, may be added to the Anonymizer record in the future using this same record type.

This record is returned by the GeoIP Insights web service.

  • Constructor Details

    • AnonymizerFeed

      public AnonymizerFeed()
      Constructs an AnonymizerFeed record with null values for all fields.
    • AnonymizerFeed

      public AnonymizerFeed(Integer confidence, LocalDate networkLastSeen, String providerName)
      Creates an instance of a AnonymizerFeed record class.
      Parameters:
      confidence - the value for the confidence record component
      networkLastSeen - the value for the networkLastSeen record component
      providerName - the value for the providerName record component
  • Method Details

    • 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.
    • confidence

      public Integer confidence()
      Returns the value of the confidence record component.
      Returns:
      the value of the confidence record component
    • networkLastSeen

      public LocalDate networkLastSeen()
      Returns the value of the networkLastSeen record component.
      Returns:
      the value of the networkLastSeen record component
    • providerName

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