Groovy adds a number of methods to java.lang.Object, most of which deal with types that serve as collections or aggregates, such as Lists or DOM Nodes.Return ValueMethodDescriptionBooleanany {closure}returns true if the closure returns true for any itemListcollect {closure}returns a list of all items that were returned from the closureCollectioncollect(Collection collection) {closure}same as above