@PublicApi public class SimpleListConnection<T> extends java.lang.Object implements DataFetcher<Connection<T>>
Constructor and Description |
---|
SimpleListConnection(java.util.List<T> data) |
SimpleListConnection(java.util.List<T> data,
java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
ConnectionCursor |
cursorForObjectInConnection(T object)
find the object's cursor, or null if the object is not in this connection.
|
Connection<T> |
get(DataFetchingEnvironment environment) |
public SimpleListConnection(java.util.List<T> data, java.lang.String prefix)
public SimpleListConnection(java.util.List<T> data)
public Connection<T> get(DataFetchingEnvironment environment)
get
in interface DataFetcher<Connection<T>>
public ConnectionCursor cursorForObjectInConnection(T object)
object
- the object in play