public class SuggestResult extends Object implements Serializable
Contains the response to a Suggest
request.
Constructor and Description |
---|
SuggestResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
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.
|
public SuggestStatus getStatus()
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 void setStatus(SuggestStatus status)
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 SuggestResult withStatus(SuggestStatus status)
SuggestRequest
. Contains the resource ID
(rid
) and how long it took to process the request
(timems
).
Returns a reference to this object so that method calls can be chained together.
status
- The status of a SuggestRequest
. Contains the resource ID
(rid
) and how long it took to process the request
(timems
).public SuggestModel getSuggest()
public void setSuggest(SuggestModel suggest)
suggest
- Container for the matching search suggestion information.public SuggestResult withSuggest(SuggestModel suggest)
Returns a reference to this object so that method calls can be chained together.
suggest
- Container for the matching search suggestion information.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.