Record Class MaxMind
java.lang.Object
java.lang.Record
com.maxmind.geoip2.record.MaxMind
- Record Components:
queriesRemaining- The number of remaining queries in your account for the current web service. This returnsnullwhen called on a database.
- All Implemented Interfaces:
JsonSerializable
Contains data related to your MaxMind account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.Returns the value of thequeriesRemainingrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
MaxMind
public MaxMind()Constructs aMaxMindrecord. -
MaxMind
Creates an instance of aMaxMindrecord class.- Parameters:
queriesRemaining- the value for thequeriesRemainingrecord component
-
-
Method Details
-
getQueriesRemaining
Deprecated, for removal: This API element is subject to removal in a future version.UsequeriesRemaining()instead. This method will be removed in 6.0.0.- Returns:
- The number of remaining queries in your account for the current
web service. This returns
nullwhen called on a database.
-
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). -
queriesRemaining
Returns the value of thequeriesRemainingrecord component.- Returns:
- the value of the
queriesRemainingrecord component
-
queriesRemaining()instead.