@@ -30,27 +30,40 @@ public final class Metadata {
3030
3131 private final int searchTreeSize ;
3232
33+ /**
34+ * Constructs a Metadata object.
35+ *
36+ * @param binaryFormatMajorVersion The major version number for the database's
37+ * binary format.
38+ * @param binaryFormatMinorVersion The minor version number for the database's
39+ * binary format.
40+ * @param buildEpoch The date of the database build.
41+ * @param databaseType A string that indicates the structure of each
42+ * data record associated with an IP address.
43+ * The actual definition of these structures is
44+ * left up to the database creator.
45+ * @param languages List of languages supported by the database.
46+ * @param description Map from language code to description in that
47+ * language.
48+ * @param ipVersion Whether the database contains IPv4 or IPv6
49+ * address data. The only possible values are 4
50+ * and 6.
51+ * @param nodeCount The number of nodes in the search tree.
52+ * @param recordSize The number of bits in a record in the search
53+ * tree. Note that each node consists of two
54+ * records.
55+ */
3356 @ MaxMindDbConstructor
3457 public Metadata (
35- @ MaxMindDbParameter (name = "binary_format_major_version" )
36- int binaryFormatMajorVersion ,
37- @ MaxMindDbParameter (name = "binary_format_minor_version" )
38- int binaryFormatMinorVersion ,
39- @ MaxMindDbParameter (name = "build_epoch" )
40- BigInteger buildEpoch ,
41- @ MaxMindDbParameter (name = "database_type" )
42- String databaseType ,
43- @ MaxMindDbParameter (name = "languages" )
44- List <String > languages ,
45- @ MaxMindDbParameter (name = "description" )
46- Map <String , String > description ,
47- @ MaxMindDbParameter (name = "ip_version" )
48- int ipVersion ,
49- @ MaxMindDbParameter (name = "node_count" )
50- long nodeCount ,
51- @ MaxMindDbParameter (name = "record_size" )
52- int recordSize
53- ) {
58+ @ MaxMindDbParameter (name = "binary_format_major_version" ) int binaryFormatMajorVersion ,
59+ @ MaxMindDbParameter (name = "binary_format_minor_version" ) int binaryFormatMinorVersion ,
60+ @ MaxMindDbParameter (name = "build_epoch" ) BigInteger buildEpoch ,
61+ @ MaxMindDbParameter (name = "database_type" ) String databaseType ,
62+ @ MaxMindDbParameter (name = "languages" ) List <String > languages ,
63+ @ MaxMindDbParameter (name = "description" ) Map <String , String > description ,
64+ @ MaxMindDbParameter (name = "ip_version" ) int ipVersion ,
65+ @ MaxMindDbParameter (name = "node_count" ) long nodeCount ,
66+ @ MaxMindDbParameter (name = "record_size" ) int recordSize ) {
5467 this .binaryFormatMajorVersion = binaryFormatMajorVersion ;
5568 this .binaryFormatMinorVersion = binaryFormatMinorVersion ;
5669 this .buildEpoch = buildEpoch ;
@@ -88,8 +101,8 @@ public Date getBuildDate() {
88101
89102 /**
90103 * @return a string that indicates the structure of each data record
91- * associated with an IP address. The actual definition of these
92- * structures is left up to the database creator.
104+ * associated with an IP address. The actual definition of these
105+ * structures is left up to the database creator.
93106 */
94107 public String getDatabaseType () {
95108 return this .databaseType ;
@@ -104,7 +117,7 @@ public Map<String, String> getDescription() {
104117
105118 /**
106119 * @return whether the database contains IPv4 or IPv6 address data. The only
107- * possible values are 4 and 6.
120+ * possible values are 4 and 6.
108121 */
109122 public int getIpVersion () {
110123 return this .ipVersion ;
@@ -133,7 +146,7 @@ int getNodeCount() {
133146
134147 /**
135148 * @return the number of bits in a record in the search tree. Note that each
136- * node consists of two records.
149+ * node consists of two records.
137150 */
138151 int getRecordSize () {
139152 return this .recordSize ;
@@ -154,11 +167,11 @@ int getSearchTreeSize() {
154167 @ Override
155168 public String toString () {
156169 return "Metadata [binaryFormatMajorVersion="
157- + this .binaryFormatMajorVersion + ", binaryFormatMinorVersion="
158- + this .binaryFormatMinorVersion + ", buildEpoch="
159- + this .buildEpoch + ", databaseType=" + this .databaseType
160- + ", description=" + this .description + ", ipVersion="
161- + this .ipVersion + ", nodeCount=" + this .nodeCount
162- + ", recordSize=" + this .recordSize + "]" ;
170+ + this .binaryFormatMajorVersion + ", binaryFormatMinorVersion="
171+ + this .binaryFormatMinorVersion + ", buildEpoch="
172+ + this .buildEpoch + ", databaseType=" + this .databaseType
173+ + ", description=" + this .description + ", ipVersion="
174+ + this .ipVersion + ", nodeCount=" + this .nodeCount
175+ + ", recordSize=" + this .recordSize + "]" ;
163176 }
164177}
0 commit comments