Record Class Metadata
java.lang.Object
java.lang.Record
com.maxmind.db.Metadata
- Record Components:
binaryFormatMajorVersion- The major version number for the database's binary format.binaryFormatMinorVersion- The minor version number for the database's binary format.buildEpoch- The date of the database build.databaseType- A string that indicates the structure of each data record associated with an IP address. The actual definition of these structures is left up to the database creator.languages- List of languages supported by the database.description- Map from language code to description in that language.ipVersion- Whether the database contains IPv4 or IPv6 address data. The only possible values are 4 and 6.nodeCount- The number of nodes in the search tree.recordSize- The number of bits in a record in the search tree. Note that each node consists of two records.
public record Metadata(int binaryFormatMajorVersion, int binaryFormatMinorVersion, BigInteger buildEpoch, String databaseType, List<String> languages, Map<String,String> description, int ipVersion, long nodeCount, int recordSize)
extends Record
Metadata holds data associated with the database itself.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebinaryFormatMajorVersionrecord component.intReturns the value of thebinaryFormatMinorVersionrecord component.Returns the value of thebuildEpochrecord component.Returns the value of thedatabaseTyperecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theipVersionrecord component.Returns the value of thelanguagesrecord component.longReturns the value of thenodeCountrecord component.intReturns the value of therecordSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metadata
-
-
Method Details
-
buildTime
- Returns:
- the instant of the database build in UTC.
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
binaryFormatMajorVersion
public int binaryFormatMajorVersion()Returns the value of thebinaryFormatMajorVersionrecord component.- Returns:
- the value of the
binaryFormatMajorVersionrecord component
-
binaryFormatMinorVersion
public int binaryFormatMinorVersion()Returns the value of thebinaryFormatMinorVersionrecord component.- Returns:
- the value of the
binaryFormatMinorVersionrecord component
-
buildEpoch
Returns the value of thebuildEpochrecord component.- Returns:
- the value of the
buildEpochrecord component
-
databaseType
Returns the value of thedatabaseTyperecord component.- Returns:
- the value of the
databaseTyperecord component
-
languages
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
ipVersion
-
nodeCount
-
recordSize
public int recordSize()Returns the value of therecordSizerecord component.- Returns:
- the value of the
recordSizerecord component
-