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 Summary
ConstructorsConstructorDescriptionConstructs anAnonymizerFeedrecord withnullvalues for all fields.AnonymizerFeed(Integer confidence, LocalDate networkLastSeen, String providerName) Creates an instance of aAnonymizerFeedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenetworkLastSeenrecord component.Returns the value of theproviderNamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
AnonymizerFeed
public AnonymizerFeed()Constructs anAnonymizerFeedrecord withnullvalues for all fields. -
AnonymizerFeed
Creates an instance of aAnonymizerFeedrecord class.- Parameters:
confidence- the value for theconfidencerecord componentnetworkLastSeen- the value for thenetworkLastSeenrecord componentproviderName- the value for theproviderNamerecord component
-
-
Method Details
-
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). -
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
networkLastSeen
Returns the value of thenetworkLastSeenrecord component.- Returns:
- the value of the
networkLastSeenrecord component
-
providerName
Returns the value of theproviderNamerecord component.- Returns:
- the value of the
providerNamerecord component
-