public class ResourceTypeSpecificationCodec extends AbstractCodec<ResourceTypeSpecification>
ResourceTypeSpecification
. Used to handle enums.Constructor and Description |
---|
ResourceTypeSpecificationCodec() |
Modifier and Type | Method and Description |
---|---|
ResourceTypeSpecification |
deserialize(com.google.gson.JsonElement json,
Type type,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(ResourceTypeSpecification spec,
Type type,
com.google.gson.JsonSerializationContext context) |
public com.google.gson.JsonElement serialize(ResourceTypeSpecification spec, Type type, com.google.gson.JsonSerializationContext context)
public ResourceTypeSpecification deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
com.google.gson.JsonParseException
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.