com.versionone.apiclient.services

## Class QueryResult

- java.lang.Object
- - com.versionone.apiclient.services.QueryResult

-     public class QueryResult
      extends Object

  This class is used to wrap the results of a query and to allow the caller to know how many total items are available

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `QueryResult(Asset[] assets, int total, Query query)`
    `QueryResult(Query query)` Use this constructor when you want to create a result with nothing

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Asset[]` | `getAssets()` Get the Assets returned by the Query
    `Query` | `getQuery()` Get the query used to generate this
    `int` | `getTotalAvaliable()` Get the total number of Assets available

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### QueryResult

          public QueryResult(Asset[] assets,
                             int total,
                             Query query)

      Parameters:
        `assets` - Asset[]
        `total` - int
        `query` - Query

    - #### QueryResult

          public QueryResult(Query query)

      Use this constructor when you want to create a result with nothing
      Parameters:
        `query` - - Query

  - ### Method Detail

    - #### getAssets

          public Asset[] getAssets()

      Get the Assets returned by the Query
      Returns:
        array of Asset

    - #### getTotalAvaliable

          public int getTotalAvaliable()

      Get the total number of Assets available
      Returns:
        int

    - #### getQuery

          public Query getQuery()

      Get the query used to generate this
      Returns:
        Query

Copyright © 2020 VersionOne, Inc.. All rights reserved.