FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java/src/test/java/com/jsoniter/SimpleObject.java at master · junplus/java · GitHub
junplus
/
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
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
java
/
src
/
test
/
java
/
com
/
jsoniter
/
SimpleObject.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (18 loc) · 631 Bytes
Breadcrumbs
java
/
src
/
test
/
java
/
com
/
jsoniter
/
SimpleObject.java
Copy path
File metadata and controls
24 lines (18 loc) · 631 Bytes
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
package
com
.
jsoniter
;
public
class
SimpleObject
{
public
String
field2
;
public
String
field1
;
@
Override
public
boolean
equals
(
Object
o
) {
if
(
this
==
o
)
return
true
;
SimpleObject
that
= (
SimpleObject
)
o
;
if
(
field2
!=
null
? !
field2
.
equals
(
that
.
field2
) :
that
.
field2
!=
null
)
return
false
;
return
field1
!=
null
?
field1
.
equals
(
that
.
field1
) :
that
.
field1
==
null
;
}
@
Override
public
int
hashCode
() {
int
result
=
field2
!=
null
?
field2
.
hashCode
() :
0
;
result
=
31
*
result
+ (
field1
!=
null
?
field1
.
hashCode
() :
0
);
return
result
;
}
}
Back
|
FazBrowse Home
|
New Git URL