Buu
Buu

Reputation: 50365

Where are the source files of Groovy's collection extensions located?

I am looking for how the methods like ArrayList#sort(Closure) are implemented in Groovy. I've downloaded Groovy's source in a zip (http://groovy.codehaus.org/Building+Groovy+from+Source), but I can't find any file containing the source of extension methods to ArrayList. Does anyone know where these Groovy extensions for Java's collection API are located?

Upvotes: 1

Views: 322

Answers (1)

Csaba_H
Csaba_H

Reputation: 8245

Take a look at the sort methods of org.codehaus.groovy.runtime.DefaultGroovyMethods class.

Upvotes: 3

Related Questions