类 TypedValue
- java.lang.Object
-
- com.alibaba.graphscope.interactive.openapi.model.TypedValue
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class TypedValue extends Object
TypedValue
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classTypedValue.CustomTypeAdapterFactory
-
字段概要
字段 修饰符和类型 字段 说明 static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_VALUE
-
构造器概要
构造器 构造器 说明 TypedValue()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object o)static TypedValuefromJson(String jsonString)Create an instance of TypedValue given an JSON stringGSDataTypegetType()Get typeObjectgetValue()Get valueinthashCode()voidsetType(GSDataType type)voidsetValue(Object value)StringtoJson()Convert an instance of TypedValue to an JSON stringStringtoString()TypedValuetype(GSDataType type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundTypedValuevalue(Object value)
-
-
-
方法详细资料
-
type
public TypedValue type(GSDataType type)
-
getType
@Nonnull public GSDataType getType()
Get type- 返回:
- type
-
setType
public void setType(GSDataType type)
-
value
public TypedValue value(Object value)
-
setValue
public void setValue(Object value)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- 参数:
jsonElement- JSON Element- 抛出:
IOException- if the JSON Element is invalid with respect to TypedValue
-
fromJson
public static TypedValue fromJson(String jsonString) throws IOException
Create an instance of TypedValue given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of TypedValue
- 抛出:
IOException- if the JSON string is invalid with respect to TypedValue
-
toJson
public String toJson()
Convert an instance of TypedValue to an JSON string- 返回:
- JSON string
-
-