Package com.helixframework.api.contract
Class CollectionResponse<T>
java.lang.Object
com.helixframework.api.contract.CollectionResponse<T>
- Type Parameters:
T- item type
API response that returns a collection without pagination.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance ofCollectionResponse.CollectionResponse(Collection<T> items) Creates an instance ofCollectionResponsecontaining items. -
Method Summary
-
Constructor Details
-
CollectionResponse
public CollectionResponse()Creates an instance ofCollectionResponse. -
CollectionResponse
Creates an instance ofCollectionResponsecontaining 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
Gets the items.- Returns:
- items
-