@@ -22,7 +22,7 @@ private List<Edge> buildEdges() {
2222 List <Edge > edges = new ArrayList <Edge >();
2323 int ix = 0 ;
2424 for (Object object : data ) {
25- edges .add (new Edge (object , new ConnectionCursor (createCursor (ix ++))));
25+ edges .add (new Edge (object , new DefaultConnectionCursor (createCursor (ix ++))));
2626 }
2727 return edges ;
2828 }
@@ -65,30 +65,30 @@ public Object get(DataFetchingEnvironment environment) {
6565 Edge firstEdge = edges .get (0 );
6666 Edge lastEdge = edges .get (edges .size () - 1 );
6767
68- PageInfo pageInfo = new PageInfo ();
68+ DefaultPageInfo pageInfo = new DefaultPageInfo ();
6969 pageInfo .setStartCursor (firstEdge .getCursor ());
7070 pageInfo .setEndCursor (lastEdge .getCursor ());
7171 pageInfo .setHasPreviousPage (!firstEdge .getCursor ().equals (firstPresliceCursor ));
7272 pageInfo .setHasNextPage (!lastEdge .getCursor ().equals (lastPresliceCursor ));
7373
74- Connection connection = new Connection ();
74+ DefaultConnection connection = new DefaultConnection ();
7575 connection .setEdges (edges );
7676 connection .setPageInfo (pageInfo );
7777
7878 return connection ;
7979 }
8080
8181 private Connection emptyConnection () {
82- Connection connection = new Connection ();
83- connection .setPageInfo (new PageInfo ());
82+ DefaultConnection connection = new DefaultConnection ();
83+ connection .setPageInfo (new DefaultPageInfo ());
8484 return connection ;
8585 }
8686
8787
8888 public ConnectionCursor cursorForObjectInConnection (Object object ) {
8989 int index = data .indexOf (object );
9090 String cursor = createCursor (index );
91- return new ConnectionCursor (cursor );
91+ return new DefaultConnectionCursor (cursor );
9292 }
9393
9494
0 commit comments