Class DocumentFindResult

  • All Implemented Interfaces:
    FindResult

    public class DocumentFindResult
    extends java.lang.Object
    implements FindResult
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static DocumentFindResult from​(java.util.List<Entity> allEntities, Criteria criteria)  
      int getCount()
      Gets the size of result collection with respect to specified range or -1 if method is not supported
      java.util.stream.Stream<ItemStateView> getResult()  
      int getTotalCount()
      If requested in search criteria gets overall count of the search result without respecting a specified search range otherwise could return -1
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCount

        public int getCount()
        Description copied from interface: FindResult
        Gets the size of result collection with respect to specified range or -1 if method is not supported
        Specified by:
        getCount in interface FindResult
        Returns:
        the size of search result with respect to specified range, or -1 if method is not supported
      • getTotalCount

        public int getTotalCount()
        Description copied from interface: FindResult
        If requested in search criteria gets overall count of the search result without respecting a specified search range otherwise could return -1
        Specified by:
        getTotalCount in interface FindResult
        Returns:
        the size of overall search result if requested in search criteria, or -1 if the total count is not needed