FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java/src/main/java/com/jsoniter/annotation/JsonProperty.java at master · iCodeIN/java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
iCodeIN
/
java
Public
forked from
json-iterator/java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java
/
src
/
main
/
java
/
com
/
jsoniter
/
annotation
/
JsonProperty.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
70 lines (57 loc) · 1.98 KB
Breadcrumbs
java
/
src
/
main
/
java
/
com
/
jsoniter
/
annotation
/
JsonProperty.java
Copy path
File metadata and controls
70 lines (57 loc) · 1.98 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package
com
.
jsoniter
.
annotation
;
import
com
.
jsoniter
.
spi
.
Decoder
;
import
com
.
jsoniter
.
spi
.
Encoder
;
import
java
.
lang
.
annotation
.
ElementType
;
import
java
.
lang
.
annotation
.
Retention
;
import
java
.
lang
.
annotation
.
RetentionPolicy
;
import
java
.
lang
.
annotation
.
Target
;
@
Target
({
ElementType
.
ANNOTATION_TYPE
,
ElementType
.
FIELD
,
ElementType
.
METHOD
,
ElementType
.
PARAMETER
})
@
Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
JsonProperty
{
/**
* @return alternative name for the field/getter/setter/parameter
*/
String
value
()
default
""
;
/**
* @return when bind from multiple possible names, set this
*/
String
[]
from
()
default
{};
/**
* @return when one field will write to multiple object fields, set this
*/
String
[]
to
()
default
{};
/**
* @return used in decoding only, the field must present in the JSON, regardless null or not
*/
boolean
required
()
default
false
;
/**
* @return set different decoder just for this field
*/
Class
<?
extends
Decoder
>
decoder
()
default
Decoder
.
class
;
/**
* @return used in decoding only, choose concrete class for interface/abstract type
*/
Class
<?>
implementation
()
default
Object
.
class
;
/**
* @return set different encoder just for this field
*/
Class
<?
extends
Encoder
>
encoder
()
default
Encoder
.
class
;
/**
* @return used in encoding only, should check null for this field,
* skip null checking will make encoding faster
*/
boolean
nullable
()
default
true
;
/**
* @return used in encoding only, should check null for the value, if it is collection,
* skip null checking will make encoding faster
*/
boolean
collectionValueNullable
()
default
true
;
/**
* @return the default value to omit
* null, to omit null value
* \"xxx\", to omit string value
* 123, to omit number
* void, to always encode this field, ignore global config
*/
String
defaultValueToOmit
()
default
""
;
}
Back
|
FazBrowse Home
|
New Git URL