public class SuggestResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a Suggest
request.
Modifier and Type | Field and Description |
---|---|
private SuggestStatus |
status
The status of a
SuggestRequest . |
private SuggestModel |
suggest
Container for the matching search suggestion information.
|
Constructor and Description |
---|
SuggestResult() |
Modifier and Type | Method and Description |
---|---|
SuggestResult |
clone() |
boolean |
equals(java.lang.Object obj) |
SuggestStatus |
getStatus()
The status of a
SuggestRequest . |
SuggestModel |
getSuggest()
Container for the matching search suggestion information.
|
int |
hashCode() |
void |
setStatus(SuggestStatus status)
The status of a
SuggestRequest . |
void |
setSuggest(SuggestModel suggest)
Container for the matching search suggestion information.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SuggestResult |
withStatus(SuggestStatus status)
The status of a
SuggestRequest . |
SuggestResult |
withSuggest(SuggestModel suggest)
Container for the matching search suggestion information.
|
private SuggestStatus status
The status of a SuggestRequest
. Contains the resource ID (
rid
) and how long it took to process the request (
timems
).
private SuggestModel suggest
Container for the matching search suggestion information.
public void setStatus(SuggestStatus status)
The status of a SuggestRequest
. Contains the resource ID (
rid
) and how long it took to process the request (
timems
).
status
- The status of a SuggestRequest
. Contains the resource
ID (rid
) and how long it took to process the request
(timems
).public SuggestStatus getStatus()
The status of a SuggestRequest
. Contains the resource ID (
rid
) and how long it took to process the request (
timems
).
SuggestRequest
. Contains the
resource ID (rid
) and how long it took to process
the request (timems
).public SuggestResult withStatus(SuggestStatus status)
The status of a SuggestRequest
. Contains the resource ID (
rid
) and how long it took to process the request (
timems
).
status
- The status of a SuggestRequest
. Contains the resource
ID (rid
) and how long it took to process the request
(timems
).public void setSuggest(SuggestModel suggest)
Container for the matching search suggestion information.
suggest
- Container for the matching search suggestion information.public SuggestModel getSuggest()
Container for the matching search suggestion information.
public SuggestResult withSuggest(SuggestModel suggest)
Container for the matching search suggestion information.
suggest
- Container for the matching search suggestion information.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SuggestResult clone()
clone
in class java.lang.Object