22
33
44import graphql .PublicApi ;
5+ import org .jspecify .annotations .NullMarked ;
6+ import org .jspecify .annotations .Nullable ;
57
68import java .util .Objects ;
79
810@ PublicApi
11+ @ NullMarked
912public class DefaultPageInfo implements PageInfo {
1013
11- private final ConnectionCursor startCursor ;
12- private final ConnectionCursor endCursor ;
14+ private final @ Nullable ConnectionCursor startCursor ;
15+ private final @ Nullable ConnectionCursor endCursor ;
1316 private final boolean hasPreviousPage ;
1417 private final boolean hasNextPage ;
1518
16- public DefaultPageInfo (ConnectionCursor startCursor , ConnectionCursor endCursor , boolean hasPreviousPage , boolean hasNextPage ) {
19+ public DefaultPageInfo (@ Nullable ConnectionCursor startCursor , @ Nullable ConnectionCursor endCursor , boolean hasPreviousPage , boolean hasNextPage ) {
1720 this .startCursor = startCursor ;
1821 this .endCursor = endCursor ;
1922 this .hasPreviousPage = hasPreviousPage ;
2023 this .hasNextPage = hasNextPage ;
2124 }
2225
2326 @ Override
24- public ConnectionCursor getStartCursor () {
27+ public @ Nullable ConnectionCursor getStartCursor () {
2528 return startCursor ;
2629 }
2730
28-
2931 @ Override
30- public ConnectionCursor getEndCursor () {
32+ public @ Nullable ConnectionCursor getEndCursor () {
3133 return endCursor ;
3234 }
3335
@@ -42,7 +44,7 @@ public boolean isHasNextPage() {
4244 }
4345
4446 @ Override
45- public boolean equals (Object o ) {
47+ public boolean equals (@ Nullable Object o ) {
4648 if (this == o ) {
4749 return true ;
4850 }
0 commit comments