not-null-gson

not null gson

License

License

Categories

Categories

Gson Data JSON
GroupId

GroupId

io.github.xanderwang
ArtifactId

ArtifactId

notnullgson
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

not-null-gson
not null gson
Project URL

Project URL

https://github.com/XanderWang/NotNullGson
Source Code Management

Source Code Management

https://github.com/XanderWang/NotNullGson

Download notnullgson

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.xanderwang/notnullgson/ -->
<dependency>
    <groupId>io.github.xanderwang</groupId>
    <artifactId>notnullgson</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.xanderwang/notnullgson/
implementation 'io.github.xanderwang:notnullgson:0.2.1'
// https://jarcasting.com/artifacts/io.github.xanderwang/notnullgson/
implementation ("io.github.xanderwang:notnullgson:0.2.1")
'io.github.xanderwang:notnullgson:jar:0.2.1'
<dependency org="io.github.xanderwang" name="notnullgson" rev="0.2.1">
  <artifact name="notnullgson" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.xanderwang', module='notnullgson', version='0.2.1')
)
libraryDependencies += "io.github.xanderwang" % "notnullgson" % "0.2.1"
[io.github.xanderwang/notnullgson "0.2.1"]

Dependencies

runtime (1)

Group / Artifact Type Version
com.google.code.gson : gson jar 2.8.6

Project Modules

There are no modules declared in this project.

NotNullGson

为解决解析后台数据过程中的各种异常,添加一些兜底方法。

比如常见的 key:value ,如果 valuenull 的时候,初始化为 value 类型的默认值。防止调用的时候为空的情况

implementation "io.github.xanderwang:notnullgson:0.1.0"

Versions

Version
0.2.1
0.2.0
0.1.0