info.javelot.functionalj.util
Class Sorter

java.lang.Object
  extended by info.javelot.functionalj.util.Sorter

public class Sorter
extends Object

Contains a method to sort by an arbitrary list of properties.

Author:
Copyright © 2006 Frederic Daoud

Constructor Summary
Sorter()
           
 
Method Summary
static void sortBy(List p_list, String[] p_properties)
          Sorts a list of objects according to an ordered list of properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sorter

public Sorter()
Method Detail

sortBy

public static void sortBy(List p_list,
                          String[] p_properties)
Sorts a list of objects according to an ordered list of properties. This method naively assumes that the properties on which to sort implement Comparable.

Parameters:
p_list - the list to sort.
p_properties - the properties, in order,