org.sakaiproject.tool.assessment.util
Class BeanDateComparator

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.util.BeanSortComparator
      extended byorg.sakaiproject.tool.assessment.util.BeanDateComparator
All Implemented Interfaces:
Comparator

public class BeanDateComparator
extends BeanSortComparator

DOCUMENTATION PENDING

Version:
$Id: BeanDateComparator.java 5718 2006-02-02 23:02:17Z daisyf@stanford.edu $
Author:
$author$

Constructor Summary
protected BeanDateComparator()
          Creates a new BeanDateComparator object.
  BeanDateComparator(String propertyName)
          The only public constructor.
 
Method Summary
 int compare(Object o1, Object o2)
          standard compare method
 
Methods inherited from class org.sakaiproject.tool.assessment.util.BeanSortComparator
describeBean
 
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

BeanDateComparator

public BeanDateComparator(String propertyName)
The only public constructor. Requires a valid property name for a a Java Bean as a sole parameter.

Parameters:
propertyName - the property name for Java Bean to sort by

BeanDateComparator

protected BeanDateComparator()
Creates a new BeanDateComparator object.

Method Detail

compare

public int compare(Object o1,
                   Object o2)
standard compare method

Specified by:
compare in interface Comparator
Overrides:
compare in class BeanSortComparator
Parameters:
o1 - object
o2 - object
Returns:
lt, eq, gt zero depending on whether o1 numerically lt,eq,gt o2
Throws:
UnsupportedOperationException - DOCUMENTATION PENDING