Class TreeDataProvider<T>

    • Method Detail

      • size

        public long size()
        Description copied from interface: IDataProvider
        Gets total number of items in the collection represented by the DataProvider
        Specified by:
        size in interface IDataProvider<T>
        Returns:
        total item count
      • iterator

        public Iterator<? extends Titerator​(long first,
                                              long count)
        Description copied from interface: IDataProvider
        Gets an iterator for the subset of total data
        Specified by:
        iterator in interface IDataProvider<T>
        Parameters:
        first - first row of data
        count - minimum number of elements to retrieve
        Returns:
        iterator capable of iterating over {first, first+count} items
      • iterateChildren

        protected abstract boolean iterateChildren​(T node)
        Hook method to decide whether the given node's children should be iterated.
        Parameters:
        node - node
        Returns:
        true if the node's children should be iterated
      • detach

        public void detach()
        Description copied from interface: IDetachable
        Detaches model after use. This is generally used to null out transient references that can be re-attached later.
        Specified by:
        detach in interface IDataProvider<T>
        Specified by:
        detach in interface IDetachable