ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r280943 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/Reverse.java
Date Wed, 14 Sep 2005 21:22:10 GMT
Author: mbenson
Date: Wed Sep 14 14:22:05 2005
New Revision: 280943

URL: http://svn.apache.org/viewcvs?rev=280943&view=rev
Log:
add convenience constructor

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/Reverse.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/Reverse.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/Reverse.java?rev=280943&r1=280942&r2=280943&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/Reverse.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/Reverse.java
Wed Sep 14 14:22:05 2005
@@ -31,6 +31,20 @@
     private ResourceComparator nested;
 
     /**
+     * Default constructor.
+     */
+    public Reverse() {
+    }
+
+    /**
+     * Construct a new Reverse, supplying the ResourceComparator to be reversed.
+     * @param c the ResourceComparator to reverse.
+     */
+    public Reverse(ResourceComparator c) {
+        add(c);
+    }
+
+    /**
      * Add the ResourceComparator to reverse.
      * @param c the ResourceComparator to add.
      */
@@ -53,4 +67,4 @@
             ? foo.compareTo(bar) : nested.compare(foo, bar));
     }
 
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message