4
4
import java .util .HashMap ;
5
5
import java .util .Objects ;
6
6
7
- /** A single record . */
8
- public class Record extends HashMap <String , Object > {
7
+ /** A single hit . */
8
+ public class Hit extends HashMap <String , Object > {
9
9
10
10
@ SerializedName ("objectID" )
11
11
private String objectID ;
@@ -22,7 +22,7 @@ public class Record extends HashMap<String, Object> {
22
22
@ SerializedName ("_distinctSeqID" )
23
23
private Integer distinctSeqID ;
24
24
25
- public Record objectID (String objectID ) {
25
+ public Hit objectID (String objectID ) {
26
26
this .objectID = objectID ;
27
27
return this ;
28
28
}
@@ -41,7 +41,7 @@ public void setObjectID(String objectID) {
41
41
this .objectID = objectID ;
42
42
}
43
43
44
- public Record highlightResult (HighlightResult highlightResult ) {
44
+ public Hit highlightResult (HighlightResult highlightResult ) {
45
45
this .highlightResult = highlightResult ;
46
46
return this ;
47
47
}
@@ -60,7 +60,7 @@ public void setHighlightResult(HighlightResult highlightResult) {
60
60
this .highlightResult = highlightResult ;
61
61
}
62
62
63
- public Record snippetResult (SnippetResult snippetResult ) {
63
+ public Hit snippetResult (SnippetResult snippetResult ) {
64
64
this .snippetResult = snippetResult ;
65
65
return this ;
66
66
}
@@ -79,7 +79,7 @@ public void setSnippetResult(SnippetResult snippetResult) {
79
79
this .snippetResult = snippetResult ;
80
80
}
81
81
82
- public Record rankingInfo (RankingInfo rankingInfo ) {
82
+ public Hit rankingInfo (RankingInfo rankingInfo ) {
83
83
this .rankingInfo = rankingInfo ;
84
84
return this ;
85
85
}
@@ -98,7 +98,7 @@ public void setRankingInfo(RankingInfo rankingInfo) {
98
98
this .rankingInfo = rankingInfo ;
99
99
}
100
100
101
- public Record distinctSeqID (Integer distinctSeqID ) {
101
+ public Hit distinctSeqID (Integer distinctSeqID ) {
102
102
this .distinctSeqID = distinctSeqID ;
103
103
return this ;
104
104
}
@@ -125,13 +125,13 @@ public boolean equals(Object o) {
125
125
if (o == null || getClass () != o .getClass ()) {
126
126
return false ;
127
127
}
128
- Record record = (Record ) o ;
128
+ Hit hit = (Hit ) o ;
129
129
return (
130
- Objects .equals (this .objectID , record .objectID ) &&
131
- Objects .equals (this .highlightResult , record .highlightResult ) &&
132
- Objects .equals (this .snippetResult , record .snippetResult ) &&
133
- Objects .equals (this .rankingInfo , record .rankingInfo ) &&
134
- Objects .equals (this .distinctSeqID , record .distinctSeqID ) &&
130
+ Objects .equals (this .objectID , hit .objectID ) &&
131
+ Objects .equals (this .highlightResult , hit .highlightResult ) &&
132
+ Objects .equals (this .snippetResult , hit .snippetResult ) &&
133
+ Objects .equals (this .rankingInfo , hit .rankingInfo ) &&
134
+ Objects .equals (this .distinctSeqID , hit .distinctSeqID ) &&
135
135
super .equals (o )
136
136
);
137
137
}
@@ -151,7 +151,7 @@ public int hashCode() {
151
151
@ Override
152
152
public String toString () {
153
153
StringBuilder sb = new StringBuilder ();
154
- sb .append ("class Record {\n " );
154
+ sb .append ("class Hit {\n " );
155
155
sb .append (" " ).append (toIndentedString (super .toString ())).append ("\n " );
156
156
sb .append (" objectID: " ).append (toIndentedString (objectID )).append ("\n " );
157
157
sb
0 commit comments