You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2005/09/14 23:22:10 UTC
svn commit: r280943 -
/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/Reverse.java
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