public static class Vault.Page<T extends ContractState>
Returned in queries VaultService.queryBy
and VaultService.trackBy
.
A Page contains:
a List of actual class StateAndRef
requested by the specified class QueryCriteria
to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata
, one per class StateAndRef
result.
a total number of states that met the given class QueryCriteria
if a class PageSpecification
was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
Note: currently otherResults are used only for Aggregate Functions (in which case, the states and statesMetadata results will be empty).
public Page(@NotNull java.util.List<? extends net.corda.core.contracts.StateAndRef<? extends T>> states, @NotNull java.util.List<net.corda.core.node.services.Vault.StateMetadata> statesMetadata, long totalStatesAvailable, @NotNull net.corda.core.node.services.Vault.StateStatus stateTypes, @NotNull java.util.List<? extends java.lang.Object> otherResults)
Returned in queries VaultService.queryBy
and VaultService.trackBy
.
A Page contains:
a List of actual class StateAndRef
requested by the specified class QueryCriteria
to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata
, one per class StateAndRef
result.
a total number of states that met the given class QueryCriteria
if a class PageSpecification
was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
Note: currently otherResults are used only for Aggregate Functions (in which case, the states and statesMetadata results will be empty).
@NotNull public java.util.List<net.corda.core.contracts.StateAndRef> getStates()
@NotNull public java.util.List<net.corda.core.node.services.Vault.StateMetadata> getStatesMetadata()
public long getTotalStatesAvailable()
@NotNull public net.corda.core.node.services.Vault.StateStatus getStateTypes()
@NotNull public java.util.List<java.lang.Object> getOtherResults()
@NotNull public java.util.List<net.corda.core.contracts.StateAndRef> component1()
@NotNull public java.util.List<net.corda.core.node.services.Vault.StateMetadata> component2()
public long component3()
@NotNull public net.corda.core.node.services.Vault.StateStatus component4()
@NotNull public java.util.List<java.lang.Object> component5()
@NotNull public net.corda.core.node.services.Vault.Page<T> copy(@NotNull java.util.List<? extends net.corda.core.contracts.StateAndRef<? extends T>> states, @NotNull java.util.List<net.corda.core.node.services.Vault.StateMetadata> statesMetadata, long totalStatesAvailable, @NotNull net.corda.core.node.services.Vault.StateStatus stateTypes, @NotNull java.util.List<? extends java.lang.Object> otherResults)
Returned in queries VaultService.queryBy
and VaultService.trackBy
.
A Page contains:
a List of actual class StateAndRef
requested by the specified class QueryCriteria
to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata
, one per class StateAndRef
result.
a total number of states that met the given class QueryCriteria
if a class PageSpecification
was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
Note: currently otherResults are used only for Aggregate Functions (in which case, the states and statesMetadata results will be empty).
@NotNull public java.lang.String toString()
Returned in queries VaultService.queryBy
and VaultService.trackBy
.
A Page contains:
a List of actual class StateAndRef
requested by the specified class QueryCriteria
to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata
, one per class StateAndRef
result.
a total number of states that met the given class QueryCriteria
if a class PageSpecification
was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
Note: currently otherResults are used only for Aggregate Functions (in which case, the states and statesMetadata results will be empty).
public int hashCode()
Returned in queries VaultService.queryBy
and VaultService.trackBy
.
A Page contains:
a List of actual class StateAndRef
requested by the specified class QueryCriteria
to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata
, one per class StateAndRef
result.
a total number of states that met the given class QueryCriteria
if a class PageSpecification
was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
Note: currently otherResults are used only for Aggregate Functions (in which case, the states and statesMetadata results will be empty).
public boolean equals(@Nullable java.lang.Object p)
Returned in queries VaultService.queryBy
and VaultService.trackBy
.
A Page contains:
a List of actual class StateAndRef
requested by the specified class QueryCriteria
to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata
, one per class StateAndRef
result.
a total number of states that met the given class QueryCriteria
if a class PageSpecification
was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
Note: currently otherResults are used only for Aggregate Functions (in which case, the states and statesMetadata results will be empty).