Record Class DatabaseRecord<T>
java.lang.Object
java.lang.Record
com.maxmind.db.DatabaseRecord<T>
- Type Parameters:
T- the type to deserialize the returned value to- Record Components:
data- the data for the record in the database. The record will benullif there was no data for the address in the database.network- the network associated with the record in the database. This is the largest network where all of the IPs in the network have the same data.
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseRecord(T data, Network network) Creates an instance of aDatabaseRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.network()Returns the value of thenetworkrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatabaseRecord
-
-
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). -
data
-
network
-