Interface SearchResponse<T>

All Known Implementing Classes:
SearchResponseImpl

public interface SearchResponse<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the list of items
    Returns information about the returned page of items
    default T
    Returns the single item or null if the item list is empty
  • Method Details

    • items

      List<T> items()
      Returns the list of items
    • page

      Returns information about the returned page of items
    • singleItem

      default T singleItem()
      Returns the single item or null if the item list is empty
      Returns:
      the single item or null if the item list is empty
      Throws:
      ClientException - if the items contain more than one entry