com.markcrocker.purifier
Class StackMapEntryComparator

java.lang.Object
  |
  +--com.markcrocker.purifier.StackMapEntryComparator
All Implemented Interfaces:
java.util.Comparator

public class StackMapEntryComparator
extends java.lang.Object
implements java.util.Comparator

Compare StackMapEntries so that they can be sorted by java.util.Arrays.sort method. Required to create a StackMap that is sorted by offsets.

Version:
0.1
Author:
Mark Crocker

Constructor Summary
StackMapEntryComparator()
           
 
Method Summary
 int compare(java.lang.Object sme1, java.lang.Object sme2)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

StackMapEntryComparator

public StackMapEntryComparator()
Method Detail

compare

public int compare(java.lang.Object sme1,
                   java.lang.Object sme2)
Specified by:
compare in interface java.util.Comparator