com.android.ddmlib
Class AllocationInfo.AllocationSorter

java.lang.Object
  extended by com.android.ddmlib.AllocationInfo.AllocationSorter
All Implemented Interfaces:
java.util.Comparator<AllocationInfo>
Enclosing class:
AllocationInfo

public static final class AllocationInfo.AllocationSorter
extends java.lang.Object
implements java.util.Comparator<AllocationInfo>


Constructor Summary
AllocationInfo.AllocationSorter()
           
 
Method Summary
 int compare(AllocationInfo o1, AllocationInfo o2)
           
 AllocationInfo.SortMode getSortMode()
           
 boolean isDescending()
           
 void setSortMode(AllocationInfo.SortMode mode)
           
 void setSortMode(AllocationInfo.SortMode mode, boolean descending)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

AllocationInfo.AllocationSorter

public AllocationInfo.AllocationSorter()
Method Detail

setSortMode

public void setSortMode(@NonNull
                        AllocationInfo.SortMode mode)

setSortMode

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

getSortMode

@NonNull
public AllocationInfo.SortMode getSortMode()

isDescending

public boolean isDescending()

compare

public int compare(AllocationInfo o1,
                   AllocationInfo o2)
Specified by:
compare in interface java.util.Comparator<AllocationInfo>