You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/10/05 11:48:22 UTC

incubator-groovy git commit: updated javadoc to reflect objects need to implement java.lang.comparable for intersect to work

Repository: incubator-groovy
Updated Branches:
  refs/heads/master f30069795 -> e9c59a375


updated javadoc to reflect objects need to implement java.lang.comparable for intersect to work


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/e9c59a37
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/e9c59a37
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/e9c59a37

Branch: refs/heads/master
Commit: e9c59a37582829f91ac8d27520899df0c7bf4ff1
Parents: f300697
Author: anand raman <ar...@gmail.com>
Authored: Wed May 27 09:24:33 2015 +0530
Committer: pascalschumacher <pa...@gmx.net>
Committed: Mon Oct 5 11:46:14 2015 +0200

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e9c59a37/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index 8bdf932..843a5bb 100644
--- a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -11285,6 +11285,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
     /**
      * Create a Collection composed of the intersection of both collections.  Any
      * elements that exist in both collections are added to the resultant collection.
+     * For collection of custom objects; objects should implement java.lang.Comparable  
      * <pre class="groovyTestCase">assert [4,5] == [1,2,3,4,5].intersect([4,5,6,7,8])</pre>
      *
      * @param left  a Collection
@@ -11320,6 +11321,7 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
     /**
      * Create a Collection composed of the intersection of both iterables.  Any
      * elements that exist in both iterables are added to the resultant collection.
+     * For collection of custom objects; objects should implement java.lang.Comparable  
      * <pre class="groovyTestCase">assert [4,5] == [1,2,3,4,5].intersect([4,5,6,7,8])</pre>
      *
      * @param left  an Iterable