private static class JsonReader.SearchResultDeserializer extends Object implements com.google.gson.JsonDeserializer<SearchResult>
SearchResult
by iterating over the json elements.Modifier and Type | Field and Description |
---|---|
private SortBehavior |
sortBehavior
Sort behavior.
|
Constructor and Description |
---|
SearchResultDeserializer(SortBehavior sb)
Creates a new search result deserializer.
|
Modifier and Type | Method and Description |
---|---|
SearchResult |
deserialize(com.google.gson.JsonElement json,
Type type,
com.google.gson.JsonDeserializationContext context) |
private final SortBehavior sortBehavior
SearchResultDeserializer(SortBehavior sb)
sb
- sort behavior of the search resultpublic SearchResult deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<SearchResult>
com.google.gson.JsonParseException
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.