AllocationInfo.AllocationSorter

public static final class AllocationInfo.AllocationSorter
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.server.AllocationInfo.AllocationSorter


Summary

Public constructors

AllocationSorter()

Public methods

int compare(AllocationInfo o1, AllocationInfo o2)
AllocationInfo.SortMode getSortMode()
boolean isDescending()
void setSortMode(AllocationInfo.SortMode mode, boolean descending)
void setSortMode(AllocationInfo.SortMode mode)

Public constructors

AllocationSorter

public AllocationSorter ()

Public methods

compare

public int compare (AllocationInfo o1, 
                AllocationInfo o2)

Parameters
o1 AllocationInfo

o2 AllocationInfo

Returns
int

getSortMode

public AllocationInfo.SortMode getSortMode ()

Returns
AllocationInfo.SortMode

isDescending

public boolean isDescending ()

Returns
boolean

setSortMode

public void setSortMode (AllocationInfo.SortMode mode, 
                boolean descending)

Parameters
mode AllocationInfo.SortMode

descending boolean

setSortMode

public void setSortMode (AllocationInfo.SortMode mode)

Parameters
mode AllocationInfo.SortMode