public class GsonResultElementFactory extends Object implements ResultElementFactory<com.google.gson.JsonElement>
ResultElement
, based on a given JsonElement
.Constructor and Description |
---|
GsonResultElementFactory(com.google.gson.GsonBuilder gsonBuilder) |
Modifier and Type | Method and Description |
---|---|
ResultElement |
create(com.google.gson.JsonElement resultElement)
Creates a
ResultElement based on the given object. |
boolean |
equals(Object o) |
com.google.gson.GsonBuilder |
getGsonBuilder() |
int |
hashCode() |
String |
toString() |
public GsonResultElementFactory(com.google.gson.GsonBuilder gsonBuilder)
@Nullable public ResultElement create(@Nullable com.google.gson.JsonElement resultElement) throws IllegalArgumentException
ResultElementFactory
ResultElement
based on the given object.create
in interface ResultElementFactory<com.google.gson.JsonElement>
resultElement
- The object to build the ResultElement
from.ResultElement
created from the given object.IllegalArgumentException
- If the given object could not be used to build a ResultElement
.public com.google.gson.GsonBuilder getGsonBuilder()
Copyright © 2018 SAP SE. All rights reserved.