commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons/beanutils/src/java/org/apache/commons/beanutils BeanComparator.java
Date Mon, 02 Dec 2002 16:38:25 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message