FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
graphql-java/src/main/java/graphql/relay/DefaultEdge.java at master · feifeiq/graphql-java · GitHub
feifeiq
/
graphql-java
Public
forked from
graphql-java/graphql-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
graphql-java
/
src
/
main
/
java
/
graphql
/
relay
/
DefaultEdge.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (53 loc) · 1.46 KB
Breadcrumbs
graphql-java
/
src
/
main
/
java
/
graphql
/
relay
/
DefaultEdge.java
Copy path
File metadata and controls
62 lines (53 loc) · 1.46 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
package
graphql
.
relay
;
public
class
DefaultEdge
<
T
>
implements
Edge
<
T
> {
public
DefaultEdge
(
T
node
,
ConnectionCursor
cursor
) {
if
(
node
==
null
) {
throw
new
IllegalArgumentException
(
"node cannot be null"
);
}
if
(
cursor
==
null
) {
throw
new
IllegalArgumentException
(
"cursor cannot be null"
);
}
this
.
node
=
node
;
this
.
cursor
=
cursor
;
}
/**
* @deprecated prefer {@link #DefaultEdge(Object, ConnectionCursor)}
*/
@
Deprecated
public
DefaultEdge
() {
}
private
T
node
;
private
ConnectionCursor
cursor
;
@
Override
public
T
getNode
() {
return
node
;
}
/**
* @deprecated prefer {@link #DefaultEdge(Object, ConnectionCursor)} and avoid mutation.
* @param node node
*/
@
Deprecated
public
void
setNode
(
T
node
) {
this
.
node
=
node
;
}
@
Override
public
ConnectionCursor
getCursor
() {
return
cursor
;
}
/**
* @deprecated prefer {@link #DefaultEdge(Object, ConnectionCursor)} and avoid mutation.
* @param cursor cursor
*/
@
Deprecated
public
void
setCursor
(
ConnectionCursor
cursor
) {
this
.
cursor
=
cursor
;
}
@
Override
public
String
toString
() {
final
StringBuilder
sb
=
new
StringBuilder
(
"DefaultEdge{"
);
sb
.
append
(
"node="
).
append
(
node
);
sb
.
append
(
", cursor="
).
append
(
cursor
);
sb
.
append
(
'}'
);
return
sb
.
toString
();
}
}
Back
|
FazBrowse Home
|
New Git URL