org.apache.myfaces.tobago.util
Class BeanComparator

java.lang.Object
  extended by org.apache.myfaces.tobago.util.ComparatorBase
      extended by org.apache.myfaces.tobago.util.BeanComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator

public class BeanComparator
extends ComparatorBase
implements java.io.Serializable

Created: Mon Apr 15 15:56:44 2002

See Also:
Serialized Form

Constructor Summary
BeanComparator(java.lang.String property)
           
BeanComparator(java.lang.String property, boolean reverse)
           
BeanComparator(java.lang.String property, java.util.Comparator comparator)
           
BeanComparator(java.lang.String property, java.util.Comparator comparator, boolean reverse)
           
 
Method Summary
 int compare(java.lang.Object param1, java.lang.Object param2)
           
 boolean equals(java.lang.Object param1)
           
 java.lang.String getProperty()
           
 int hashCode()
           
 
Methods inherited from class org.apache.myfaces.tobago.util.ComparatorBase
getComparator, internalCompare
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanComparator

public BeanComparator(java.lang.String property)

BeanComparator

public BeanComparator(java.lang.String property,
                      boolean reverse)

BeanComparator

public BeanComparator(java.lang.String property,
                      java.util.Comparator comparator)

BeanComparator

public BeanComparator(java.lang.String property,
                      java.util.Comparator comparator,
                      boolean reverse)
Method Detail

equals

public boolean equals(java.lang.Object param1)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class ComparatorBase
Parameters:
param1 -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class ComparatorBase

compare

public int compare(java.lang.Object param1,
                   java.lang.Object param2)
Specified by:
compare in interface java.util.Comparator
Parameters:
param1 -
param2 -
Returns:

getProperty

public java.lang.String getProperty()


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.