Package org.onyx.api
Class Account.ListBuilder
- Enclosing class:
Account
A builder class for listing accounts in the ledger.
-
Field Summary
Fields inherited from class org.onyx.api.BaseQueryBuilder
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIterable(Client client) Executes the query, returning an iterable over accounts that match the query.Executes the query, returning a page of accounts that match the query.Executes the query, returning a page of accounts that match the query beginning with provided cursor.Methods inherited from class org.onyx.api.BaseQueryBuilder
addFilterParameter, setFilter, setFilterParameters, setPageSize
-
Constructor Details
-
ListBuilder
public ListBuilder()
-
-
Method Details
-
getPage
Executes the query, returning a page of accounts that match the query.- Specified by:
getPagein classBaseQueryBuilder<Account.ListBuilder>- Parameters:
client- ledger API connection object- Returns:
- a page of accounts
- Throws:
ChainException
-
getPage
Executes the query, returning a page of accounts that match the query beginning with provided cursor.- Parameters:
client- ledger API connection objectcursor- string representing encoded query object- Returns:
- a page of accounts
- Throws:
ChainException
-
getIterable
Executes the query, returning an iterable over accounts that match the query.- Specified by:
getIterablein classBaseQueryBuilder<Account.ListBuilder>- Parameters:
client- ledger API connection object- Returns:
- an iterable over accounts
- Throws:
ChainException
-