Class CommentItResource.CommentsList

  • Enclosing class:
    CommentItResource

    public static class CommentItResource.CommentsList
    extends ListResult<Comment>
    JAXB object used to return a list of Comment objects.
    Since:
    8.0.0
    Version:
    $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
    • Constructor Detail

      • CommentsList

        public CommentsList​(UriInfo uriInfo,
                            List<Comment> items,
                            int totalComments)
        Constructor that also initializes the ListResult
        Parameters:
        uriInfo - the UriInfo
        items - the list containing the Comment objects
        totalComments - The total amount of comments this item has as given by CommentItManager.getCommentsCount(String itemId, String serviceInstanceId).
        Since:
        8.0.0
      • CommentsList

        public CommentsList()
        Empty constructor used by the XmlAdapters
        Since:
        8.0.0
    • Method Detail

      • getItems

        public List<Comment> getItems()
        Description copied from class: ListResult
        Returns the backing list object for this result list.
        Overrides:
        getItems in class ListResult<Comment>
        Returns:
        the backing list object for this result list.