net.sf.cotta.memory
Interface ListingOrder


public interface ListingOrder

Listing order used to sort the listing to return


Field Summary
static ListingOrder AToZ
          Sort in the order in which a appears before z
static ListingOrder NULL
          NULL value that does not do any sorting.
static ListingOrder Random
          Sort in random order.
static ListingOrder ZToA
          Sort in the order in which z appears before a
 
Method Summary
 java.util.List<TPath> sort(java.util.List<TPath> paths)
          Sort the list being passed in.
 

Field Detail

NULL

static final ListingOrder NULL
NULL value that does not do any sorting. The order of the list will be depending on the file system's implementation


AToZ

static final ListingOrder AToZ
Sort in the order in which a appears before z


ZToA

static final ListingOrder ZToA
Sort in the order in which z appears before a


Random

static final ListingOrder Random
Sort in random order. This is good for exploratory testing but not recommended for unit testing

Method Detail

sort

java.util.List<TPath> sort(java.util.List<TPath> paths)
Sort the list being passed in. The paths can be modified directly

Parameters:
paths - the multable list to sort
Returns:
the sorted list