Class CollectionResponse<T>

java.lang.Object
com.helixframework.api.contract.CollectionResponse<T>
Type Parameters:
T - item type

public class CollectionResponse<T> extends Object
API response that returns a collection without pagination.
  • Constructor Details

    • CollectionResponse

      public CollectionResponse()
      Creates an instance of CollectionResponse.
    • CollectionResponse

      public CollectionResponse(Collection<T> items)
      Creates an instance of CollectionResponse containing items.
      Parameters:
      items - items to return in response
  • Method Details

    • getCount

      public int getCount()
      Gets the number of items in the collection.
      Returns:
      number of items in the collection
    • getItems

      public Collection<T> getItems()
      Gets the items.
      Returns:
      items