org.sakaiproject.tool.assessment.util
Class BeanIntegerComparator

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

public class BeanIntegerComparator
extends BeanSortComparator

DOCUMENTATION PENDING

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

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

BeanIntegerComparator

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

BeanIntegerComparator

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