net.mlw.vlh
Class DefaultValueListHandlerImpl.BeanComparator

java.lang.Object
  extended bynet.mlw.vlh.DefaultValueListHandlerImpl.BeanComparator
All Implemented Interfaces:
Comparator
Enclosing class:
DefaultValueListHandlerImpl

public static class DefaultValueListHandlerImpl.BeanComparator
extends Object
implements Comparator

Compares two beans.

Version:
$Revision: 1.15 $ $Date: 2006/03/29 19:47:49 $
Author:
Matthew L. Wilson

Constructor Summary
DefaultValueListHandlerImpl.BeanComparator(String pmethod, int pdirection)
          Default constructor.
 
Method Summary
 int compare(Object obj1, Object obj2)
           
 
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

DefaultValueListHandlerImpl.BeanComparator

public DefaultValueListHandlerImpl.BeanComparator(String pmethod,
                                                  int pdirection)
Default constructor.

Parameters:
pmethod - The method to sort upon.
pdirection - The direction to sort.
Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Specified by:
compare in interface Comparator
See Also:
java.util.Comparator.compare(Object, Object)


Copyright © 2003-2006 mlavilson. All Rights Reserved.