public final class

Collapser

extends Object
java.lang.Object
   ↳ com.android.contacts.Collapser

Class Overview

Class used for collapsing data items into groups of similar items. The data items that should be collapsible should implement the Collapsible interface. The class also contains a utility function that takes an ArrayList of items and returns a list of the same items collapsed into groups.

Summary

Nested Classes
interface Collapser.Collapsible<T>  
Public Methods
static <T extends Collapsible<T>> void collapseList(ArrayList<T> list)
Collapses a list of Collapsible items into a list of collapsed items.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void collapseList (ArrayList<T> list)

Collapses a list of Collapsible items into a list of collapsed items. Items are collapsed if return strue, and are collapsed through the {@Link Collapsible#collapseWith(Object) function implemented by the data item.

Parameters
list ArrayList of Objects of type > to be collapsed.