com.lazerycode.jmeter
Class IncludesComparator

java.lang.Object
  extended by com.lazerycode.jmeter.IncludesComparator
All Implemented Interfaces:
Comparator<String>

public class IncludesComparator
extends Object
implements Comparator<String>

Compare filenames based on their order in a list of includes (using default ant include pattern).


Constructor Summary
IncludesComparator(List<String> includes)
           
 
Method Summary
 int compare(String s1, String s2)
          Compares two filenames based on the index of the first include pattern that matches them in the given list.
 
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

IncludesComparator

public IncludesComparator(List<String> includes)
Method Detail

compare

public int compare(String s1,
                   String s2)
Compares two filenames based on the index of the first include pattern that matches them in the given list. If the index is equal, the actual filename lexicographical order is used to ensure a total order.

Specified by:
compare in interface Comparator<String>


Copyright © 2012. All Rights Reserved.