org.sakaiproject.tool.assessment.util
Class BeanFloatComparator

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

public class BeanFloatComparator
extends BeanSortComparator

DOCUMENTATION PENDING

Version:
$Id: BeanFloatComparator.java 2574 2005-10-13 19:56:46Z esmiley@stanford.edu $
Author:
$author$

Constructor Summary
protected BeanFloatComparator()
          Creates a new BeanFloatComparator object.
  BeanFloatComparator(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

BeanFloatComparator

public BeanFloatComparator(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

BeanFloatComparator

protected BeanFloatComparator()
Creates a new BeanFloatComparator 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