You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by cr...@apache.org on 2002/12/02 17:38:25 UTC
cvs commit: jakarta-commons/beanutils/src/java/org/apache/commons/beanutils BeanComparator.java
craigmcc 2002/12/02 08:38:24
Modified: beanutils/src/java/org/apache/commons/beanutils
BeanComparator.java
Log:
Allow the retrieval of the Comparator being used in a BeanComparator
instance.
Submitted by: Eric Pugh <epugh at upstate.com>
Revision Changes Path
1.2 +13 -4 jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanComparator.java
Index: BeanComparator.java
===================================================================
RCS file: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanComparator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BeanComparator.java 10 Sep 2002 07:01:07 -0000 1.1
+++ BeanComparator.java 2 Dec 2002 16:38:24 -0000 1.2
@@ -67,7 +67,7 @@
import org.apache.commons.collections.comparators.ComparableComparator;
/**
- * Allows you to pass the name of a method in and compare two beans
+ * Allows you to pass the name of a method in and compare two beans.
*
* @author <a href"mailto:epugh@upstate.com">Eric Pugh</a>
* @created May 5, 2002
@@ -119,6 +119,15 @@
public String getProperty() {
return property;
}
+
+
+ /**
+ * Gets the Comparator being used to compare beans.
+ */
+ public Comparator getComparator() {
+ return comparator;
+ }
+
/**
* Compare two JavaBeans by their shared property.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>