public class

GroupedList

extends AnnotationList
java.lang.Object
   ↳ com.pdftron.collab.ui.annotlist.model.list.AnnotationList
     ↳ com.pdftron.collab.ui.annotlist.model.list.GroupedList<T extends com.pdftron.collab.ui.annotlist.model.list.item.AnnotationListHeader.HeaderData>

Class Overview

Data structure for a grouped list with headers for each grouping.

Summary

Nested Classes
class GroupedList.AnnotationListGroup<K extends AnnotationListHeader.HeaderData>  
interface GroupedList.GroupKey<T>  
Public Constructors
GroupedList(AnnotationEntityMapper<T> adapter, PDFViewCtrl mPdfViewCtrl, GroupKey<T> groupKey)
Public Methods
AnnotationListItem get(int position)
Returns the AnnotationListItem at the specified position.
int size()
GroupedList sort(Comparator<AnnotationListGroup<T>> groupComparator, Comparator<AnnotationListContent> itemComparator)
[Expand]
Inherited Methods
From class com.pdftron.collab.ui.annotlist.model.list.AnnotationList
From class java.lang.Object

Public Constructors

public GroupedList (AnnotationEntityMapper<T> adapter, PDFViewCtrl mPdfViewCtrl, GroupKey<T> groupKey)

Public Methods

public AnnotationListItem get (int position)

Returns the AnnotationListItem at the specified position.

Parameters
position position to grab the AnnotationListItem
Returns

public int size ()

Returns
  • size of the list of annotations.

public GroupedList sort (Comparator<AnnotationListGroup<T>> groupComparator, Comparator<AnnotationListContent> itemComparator)