Package: org.codehaus.groovy.runtime

## [Java] Class DefaultGroovyMethods

- org.codehaus.groovy.runtime.DefaultGroovyMethods

- This class defines new groovy methods which appear on normal JDK classes inside the Groovy environment. Static methods are used with the first parameter being the destination class, i.e. `public static String reverse(String self)` provides a `reverse()` method for `String`.

  NOTE: While this class contains many 'public' static methods, it is primarily regarded as an internal class (its internal package name suggests this also). We value backwards compatibility of these methods when used within Groovy but value less backwards compatibility at the Java method call level. I.e. future versions of Groovy may remove or move a method call in this file but would normally aim to keep the method available from within Groovy.

  Authors:
    James Strachan
    Jeremy Rayner
    Sam Pullara
    Rod Cope
    Guillaume Laforge
    John Wilson
    Hein Meling
    Dierk Koenig
    Pilho Kim
    Marc Guillemot
    Russel Winder
    bing ran
    Jochen Theodorou
    Paul King
    Michael Baehr
    Joachim Baumann
    Alex Tkachman
    Ted Naleid
    Brad Long
    Jim Jagielski
    Rodolfo Velasco
    jeremi Joslin
    Hamlet D'Arcy
    Cedric Champeau
    Tim Yates
    Dinko Srkoc
    Andre Steingress

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static Class[]` | `DGM_LIKE_CLASSES` |
    `static Class[]` | `additionals` |

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `static int` | `abs(Number number)` Get the absolute value
    `static long` | `abs(Long number)` Get the absolute value
    `static float` | `abs(Float number)` Get the absolute value
    `static double` | `abs(Double number)` Get the absolute value
    `static Socket` | `accept(ServerSocket serverSocket, Closure closure)`
    `static Socket` | `accept(ServerSocket serverSocket, boolean runInANewThread, Closure closure)`
    `static boolean` | `addAll(Collection<T> self, T[] items)` Modifies the collection by adding all of the elements in the specified array to the collection.
    `static boolean` | `addAll(List<T> self, int index, T[] items)` Modifies this list by inserting all of the elements in the specified array into the list at the specified position.
    `static void` | `addShutdownHook(Object self, Closure closure)` Allows the usage of addShutdownHook without getting the runtime first.
    `static Number` | `and(Number left, Number right)` Bitwise AND together two Numbers.
    `static BitSet` | `and(BitSet left, BitSet right)` Bitwise AND together two BitSets.
    `static Boolean` | `and(Boolean left, Boolean right)` Logical conjunction of two boolean operators.
    `static boolean` | `any(Object self, Closure closure)` Iterates over the contents of an object or collection, and checks whether a predicate is valid for at least one element.
    `static boolean` | `any(Iterator<T> self, Closure closure)` Iterates over the contents of an iterator, and checks whether a predicate is valid for at least one element.
    `static boolean` | `any(Iterable<T> self, Closure closure)` Iterates over the contents of an iterable, and checks whether a predicate is valid for at least one element.
    `static boolean` | `any(Map<K, V> self, Closure<?> closure)` Iterates over the entries of a map, and checks whether a predicate is valid for at least one entry.
    `static boolean` | `any(Object self)` Iterates over the elements of a collection, and checks whether at least one element is true according to the Groovy Truth.
    `static void` | `append(File file, Object text)`
    `static void` | `append(File file, byte[] bytes)`
    `static void` | `append(File self, InputStream stream)`
    `static void` | `append(File file, Object text, String charset)`
    `static boolean` | `asBoolean(Object object)` Coerce an object instance to a boolean value.
    `static boolean` | `asBoolean(Boolean bool)` Coerce an Boolean instance to a boolean value.
    `static boolean` | `asBoolean(Collection collection)` Coerce a collection instance to a boolean value.
    `static boolean` | `asBoolean(Map map)` Coerce a map instance to a boolean value.
    `static boolean` | `asBoolean(Iterator iterator)` Coerce an iterator instance to a boolean value.
    `static boolean` | `asBoolean(Enumeration enumeration)` Coerce an enumeration instance to a boolean value.
    `static boolean` | `asBoolean(Object[] array)` Coerce an Object array to a boolean value.
    `static boolean` | `asBoolean(byte[] array)` Coerces a byte array to a boolean value.
    `static boolean` | `asBoolean(short[] array)` Coerces a short array to a boolean value.
    `static boolean` | `asBoolean(int[] array)` Coerces an int array to a boolean value.
    `static boolean` | `asBoolean(long[] array)` Coerces a long array to a boolean value.
    `static boolean` | `asBoolean(float[] array)` Coerces a float array to a boolean value.
    `static boolean` | `asBoolean(double[] array)` Coerces a double array to a boolean value.
    `static boolean` | `asBoolean(boolean[] array)` Coerces a boolean array to a boolean value.
    `static boolean` | `asBoolean(char[] array)` Coerces a char array to a boolean value.
    `static boolean` | `asBoolean(Character character)` Coerce a character to a boolean value.
    `static boolean` | `asBoolean(Number number)` Coerce a number to a boolean value.
    `static boolean` | `asBoolean(CharSequence string)`
    `static boolean` | `asBoolean(Matcher matcher)`
    `static Map<K, V>` | `asImmutable(Map<? extends K, ? extends V> self)` A convenience method for creating an immutable map.
    `static SortedMap<K, V>` | `asImmutable(SortedMap<K, ? extends V> self)` A convenience method for creating an immutable sorted map.
    `static List<T>` | `asImmutable(List<? extends T> self)` A convenience method for creating an immutable list
    `static Set<T>` | `asImmutable(Set<? extends T> self)` A convenience method for creating an immutable list.
    `static SortedSet<T>` | `asImmutable(SortedSet<T> self)` A convenience method for creating an immutable sorted set.
    `static Collection<T>` | `asImmutable(Collection<? extends T> self)` A convenience method for creating an immutable Collection.
    `static List<T>` | `asList(Collection<T> self)` @deprecated Use the Iterable version of asList instead
    `static List<T>` | `asList(Iterable<T> self)` Converts this Iterable to a List.
    `static Map<K, V>` | `asSynchronized(Map<K, V> self)` A convenience method for creating a synchronized Map.
    `static SortedMap<K, V>` | `asSynchronized(SortedMap<K, V> self)` A convenience method for creating a synchronized SortedMap.
    `static Collection<T>` | `asSynchronized(Collection<T> self)` A convenience method for creating a synchronized Collection.
    `static List<T>` | `asSynchronized(List<T> self)` A convenience method for creating a synchronized List.
    `static Set<T>` | `asSynchronized(Set<T> self)` A convenience method for creating a synchronized Set.
    `static SortedSet<T>` | `asSynchronized(SortedSet<T> self)` A convenience method for creating a synchronized SortedSet.
    `static T` | `asType(Collection col, Class<T> clazz)` Converts the given collection to another type.
    `static T` | `asType(Object[] ary, Class<T> clazz)` Converts the given array to either a List, Set, or SortedSet.
    `static T` | `asType(Closure cl, Class<T> clazz)` Coerces the closure to an implementation of the given class.
    `static T` | `asType(Map map, Class<T> clazz)` Coerces this map to the given type, using the map's keys as the public method names, and values as the implementation.
    `static T` | `asType(Number self, Class<T> c)` Transform this number to a the given type, using the 'as' operator.
    `static T` | `asType(Object obj, Class<T> type)` Converts a given object to a type.
    `static T` | `asType(CharSequence self, Class<T> c)`
    `static T` | `asType(GString self, Class<T> c)`
    `static T` | `asType(String self, Class<T> c)`
    `static T` | `asType(File f, Class<T> c)`
    `static File` | `asWritable(File file)`
    `static File` | `asWritable(File file, String encoding)`
    `static BitSet` | `bitwiseNegate(BitSet self)` Bitwise NEGATE a BitSet.
    `static Number` | `bitwiseNegate(Number left)` Bitwise NEGATE a Number.
    `static Pattern` | `bitwiseNegate(CharSequence self)`
    `static Pattern` | `bitwiseNegate(String self)`
    `protected static T` | `callClosureForLine(Closure<T> closure, String line, int counter)`
    `protected static T` | `callClosureForMapEntry(Closure<T> closure, Map.Entry entry)`
    `protected static T` | `callClosureForMapEntryAndCounter(Closure<T> closure, Map.Entry entry, int counter)`
    `static CharSequence` | `capitalize(CharSequence self)`
    `static String` | `capitalize(String self)`
    `static CharSequence` | `center(CharSequence self, Number numberOfChars)`
    `static CharSequence` | `center(CharSequence self, Number numberOfChars, CharSequence padding)`
    `static String` | `center(String self, Number numberOfChars)`
    `static String` | `center(String self, Number numberOfChars, String padding)`
    `static List<List<T>>` | `collate(List<T> self, int size)` Collates this list into sub-lists of length `size`.
    `static List<List<T>>` | `collate(List<T> self, int size, int step)` Collates this list into sub-lists of length `size` stepping through the code `step` elements for each subList.
    `static List<List<T>>` | `collate(List<T> self, int size, boolean keepRemainder)` Collates this list into sub-lists of length `size`.
    `static List<List<T>>` | `collate(List<T> self, int size, int step, boolean keepRemainder)` Collates this list into sub-lists of length `size` stepping through the code `step` elements for each sub-list.
    `static List<T>` | `collect(Object self, Closure<T> transform)` Iterates through this aggregate Object transforming each item into a new value using the `transform` closure, returning a list of transformed values.
    `static Collection` | `collect(Object self)` Iterates through this aggregate Object transforming each item into a new value using Closure.IDENTITY as a transformer, basically returning a list of items copied from the original object.
    `static Collection<T>` | `collect(Object self, Collection<T> collector, Closure<? extends T> transform)` Iterates through this aggregate Object transforming each item into a new value using the `transform` closure and adding it to the supplied `collector`.
    `static List<T>` | `collect(Collection<S> self, Closure<T> transform)` Iterates through this collection transforming each entry into a new value using the `transform` closure returning a list of transformed values.
    `static List<T>` | `collect(Collection<T> self)` Iterates through this collection transforming each entry into a new value using Closure.IDENTITY as a transformer, basically returning a list of items copied from the original collection.
    `static Collection<T>` | `collect(Collection<E> self, Collection<T> collector, Closure<? extends T> transform)` Iterates through this collection transforming each value into a new value using the `transform` closure and adding it to the supplied `collector`.
    `static Collection<T>` | `collect(Map<K, V> self, Collection<T> collector, Closure<? extends T> transform)` Iterates through this Map transforming each map entry into a new value using the `transform` closure returning the `collector` with all transformed values added to it.
    `static List<T>` | `collect(Map<K, V> self, Closure<T> transform)` Iterates through this Map transforming each map entry into a new value using the `transform` closure returning a list of transformed values.
    `static List` | `collectAll(Collection self, Closure transform)` Deprecated alias for collectNested
    `static Collection` | `collectAll(Collection self, Collection collector, Closure transform)` Deprecated alias for collectNested
    `static Map<K, V>` | `collectEntries(Map<S, T> self, Map<K, V> collector, Closure<?> transform)` Iterates through this Map transforming each map entry using the `transform` closure returning a map of the transformed entries.
    `static Map<?, ?>` | `collectEntries(Map<K, V> self, Closure<?> transform)` Iterates through this Map transforming each entry using the `transform` closure and returning a map of the transformed entries.
    `static Map<K, V>` | `collectEntries(Collection<?> self, Closure<?> transform)` @deprecated Use the Iterable version of collectEntries instead
    `static Map<K, V>` | `collectEntries(Iterator<E> self, Closure<?> transform)` A variant of collectEntries for Iterators.
    `static Map<K, V>` | `collectEntries(Iterable<E> self, Closure<?> transform)` Iterates through this Iterable transforming each item using the `transform` closure and returning a map of the resulting transformed entries.
    `static Map<K, V>` | `collectEntries(Collection<?> self)` @deprecated Use the Iterable version of collectEntries instead
    `static Map<K, V>` | `collectEntries(Iterator<?> self)` A variant of collectEntries for Iterators using the identity closure as the transform.
    `static Map<K, V>` | `collectEntries(Iterable<?> self)` A variant of collectEntries for Iterable objects using the identity closure as the transform.
    `static Map<K, V>` | `collectEntries(Collection<?> self, Map<K, V> collector, Closure<?> transform)` @deprecated Use the Iterable version of collectEntries instead
    `static Map<K, V>` | `collectEntries(Iterator<E> self, Map<K, V> collector, Closure<?> transform)` A variant of collectEntries for Iterators using a supplied map as the destination of transformed entries.
    `static Map<K, V>` | `collectEntries(Iterable<E> self, Map<K, V> collector, Closure<?> transform)` Iterates through this Iterable transforming each item using the closure as a transformer into a map entry, returning the supplied map with all of the transformed entries added to it.
    `static Map<K, V>` | `collectEntries(Collection<?> self, Map<K, V> collector)` @deprecated Use the Iterable version of collectEntries instead
    `static Map<K, V>` | `collectEntries(Iterator<?> self, Map<K, V> collector)` A variant of collectEntries for Iterators using the identity closure as the transform and a supplied map as the destination of transformed entries.
    `static Map<K, V>` | `collectEntries(Iterable<?> self, Map<K, V> collector)` A variant of collectEntries for Iterables using the identity closure as the transform and a supplied map as the destination of transformed entries.
    `static Map<K, V>` | `collectEntries(E[] self, Map<K, V> collector, Closure<?> transform)` Iterates through this array transforming each item using the `transform` closure and returning a map of the resulting transformed entries.
    `static Map<K, V>` | `collectEntries(Object[] self, Map<K, V> collector)` A variant of collectEntries using the identity closure as the transform.
    `static Map<K, V>` | `collectEntries(E[] self, Closure<?> transform)` Iterates through this array transforming each item using the `transform` closure and returning a map of the resulting transformed entries.
    `static Map<K, V>` | `collectEntries(Object[] self)` A variant of collectEntries using the identity closure as the transform.
    `static List<T>` | `collectMany(Collection<E> self, Closure<Collection<? extends T>> projection)` @deprecated Use the Iterable version of collectMany instead
    `static Collection<T>` | `collectMany(Collection<E> self, Collection<T> collector, Closure<Collection<? extends T>> projection)` @deprecated Use the Iterable version of collectMany instead
    `static List<T>` | `collectMany(Iterable<E> self, Closure<Collection<? extends T>> projection)` Projects each item from a source Iterable to a collection and concatenates (flattens) the resulting collections into a single list.
    `static Collection<T>` | `collectMany(Iterable<E> self, Collection<T> collector, Closure<Collection<? extends T>> projection)` Projects each item from a source collection to a result collection and concatenates (flattens) the resulting collections adding them into the `collector`.
    `static Collection<T>` | `collectMany(Map<K, V> self, Collection<T> collector, Closure<Collection<? extends T>> projection)` Projects each item from a source map to a result collection and concatenates (flattens) the resulting collections adding them into the `collector`.
    `static Collection<T>` | `collectMany(Map<K, V> self, Closure<Collection<? extends T>> projection)` Projects each item from a source map to a result collection and concatenates (flattens) the resulting collections adding them into a collection.
    `static List<T>` | `collectMany(E[] self, Closure<Collection<? extends T>> projection)` Projects each item from a source array to a collection and concatenates (flattens) the resulting collections into a single list.
    `static List<T>` | `collectMany(Iterator<E> self, Closure<Collection<? extends T>> projection)` Projects each item from a source iterator to a collection and concatenates (flattens) the resulting collections into a single list.
    `static List` | `collectNested(Collection self, Closure transform)` Recursively iterates through this collection transforming each non-Collection value into a new value using the closure as a transformer.
    `static List` | `collectNested(Iterable self, Closure transform)` Recursively iterates through this Iterable transforming each non-Collection value into a new value using the closure as a transformer.
    `static Collection` | `collectNested(Collection self, Collection collector, Closure transform)` @deprecated Use the Iterable version of collectNested instead
    `static Collection` | `collectNested(Iterable self, Collection collector, Closure transform)` Recursively iterates through this Iterable transforming each non-Collection value into a new value using the `transform` closure.
    `static List` | `combinations(Collection self)` @deprecated Use the Iterable version of combinations instead
    `static List` | `combinations(Iterable self)` Adds GroovyCollections#combinations(Iterable) as a method on Iterables.
    `static List` | `combinations(Iterable self, Closure<?> function)` Adds GroovyCollections#combinations(Iterable, Closure) as a method on collections.
    `static int` | `compareTo(Character left, Number right)` Compare a Character and a Number.
    `static int` | `compareTo(Number left, Character right)` Compare a Number and a Character.
    `static int` | `compareTo(Character left, Character right)` Compare two Characters.
    `static int` | `compareTo(Number left, Number right)` Compare two Numbers.
    `static boolean` | `contains(int[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(long[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(short[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(char[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(boolean[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(double[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(float[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(byte[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(Object[] self, Object value)` Checks whether the array contains the given value.
    `static boolean` | `contains(CharSequence self, CharSequence text)`
    `static boolean` | `contains(String self, String text)`
    `static boolean` | `containsAll(Collection self, Object[] items)` Returns `true` if this collection contains all of the elements in the specified array.
    `static Number` | `count(Iterator self, Object value)` Counts the number of occurrences of the given value from the items within this Iterator.
    `static Number` | `count(Iterator<T> self, Closure closure)` Counts the number of occurrences which satisfy the given closure from the items within this Iterator.
    `static Number` | `count(Collection self, Object value)` @deprecated use count(Iterable, Closure)
    `static Number` | `count(Iterable self, Object value)` Counts the number of occurrences of the given value inside this Iterable.
    `static Number` | `count(Collection self, Closure closure)` @deprecated use count(Iterable, Closure)
    `static Number` | `count(Iterable<T> self, Closure closure)` Counts the number of occurrences which satisfy the given closure from inside this Iterable.
    `static Number` | `count(Map<K, V> self, Closure<?> closure)` Counts the number of occurrences which satisfy the given closure from inside this map.
    `static Number` | `count(Object[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(T[] self, Closure closure)` Counts the number of occurrences which satisfy the given closure from inside this array.
    `static Number` | `count(int[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(long[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(short[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(char[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(boolean[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(double[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(float[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static Number` | `count(byte[] self, Object value)` Counts the number of occurrences of the given value inside this array.
    `static int` | `count(CharSequence self, CharSequence text)`
    `static int` | `count(String self, String text)`
    `static Map<K, Integer>` | `countBy(Collection self, Closure<K> closure)` @deprecated Use the Iterable version of countBy instead
    `static Map<K, Integer>` | `countBy(Iterable<E> self, Closure<K> closure)` Sorts all collection members into groups determined by the supplied mapping closure and counts the group size.
    `static Map<K, Integer>` | `countBy(E[] self, Closure<K> closure)` Sorts all array members into groups determined by the supplied mapping closure and counts the group size.
    `static Map<K, Integer>` | `countBy(Iterator<E> self, Closure<K> closure)` Sorts all iterator items into groups determined by the supplied mapping closure and counts the group size.
    `static Map<K, Integer>` | `countBy(Map<U, V> self, Closure<K> closure)` Groups the members of a map into groups determined by the supplied mapping closure and counts the frequency of the created groups.
    `protected static StringBufferWriter` | `createStringBufferWriter(StringBuffer self)`
    `protected static StringWriter` | `createStringWriter(String self)`
    `static boolean` | `deleteDir(File self)`
    `static CharSequence` | `denormalize(CharSequence self)`
    `static String` | `denormalize(String self)`
    `static boolean` | `disjoint(Collection left, Collection right)` Returns `true` if the intersection of two collections is empty.
    `static Number` | `div(Character left, Number right)` Divide a Character by a Number.
    `static Number` | `div(Number left, Character right)` Divide a Number by a Character.
    `static Number` | `div(Character left, Character right)` Divide one Character by another.
    `static void` | `downto(Number self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(long self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(Long self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(float self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(Float self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(double self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(Double self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(BigInteger self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static void` | `downto(BigDecimal self, Number to, Closure closure)` Iterates from this number down to the given number, inclusive, decrementing by one each time.
    `static List<T>` | `drop(List<T> self, int num)` Drops the given number of elements from the head of this list if they are available.
    `static List<T>` | `drop(Iterable<T> self, int num)` Drops the given number of elements from the head of this Iterable.
    `static T[]` | `drop(T[] self, int num)` Drops the given number of elements from the head of this array if they are available.
    `static Map<K, V>` | `drop(Map<K, V> self, int num)` Drops the given number of key/value pairs from the head of this map if they are available.
    `static Iterator<T>` | `drop(Iterator<T> self, int num)` Drops the given number of elements from the head of this iterator if they are available.
    `static CharSequence` | `drop(CharSequence self, int num)`
    `static List<T>` | `dropWhile(List<T> self, Closure<?> condition)` Returns a suffix of this List where elements are dropped from the front while the given Closure evaluates to true.
    `static List<T>` | `dropWhile(Iterable<T> self, Closure<?> condition)` Returns a suffix of this Iterable where elements are dropped from the front while the given closure evaluates to true.
    `static Map<K, V>` | `dropWhile(Map<K, V> self, Closure<?> condition)` Create a suffix of the given Map by dropping as many entries as possible from the front of the original Map such that calling the given closure condition evaluates to true when passed each of the dropped entries (or key/value pairs).
    `static T[]` | `dropWhile(T[] self, Closure<?> condition)` Create a suffix of the given array by dropping as many elements as possible from the front of the original array such that calling the given closure condition evaluates to true when passed each of the dropped elements.
    `static Iterator<T>` | `dropWhile(Iterator<T> self, Closure<?> condition)` Creates an Iterator that returns a suffix of the elements from an original Iterator.
    `static String` | `dump(Object self)` Generates a detailed dump string of an object showing its class, hashCode and fields.
    `static T` | `each(T self, Closure closure)` Iterates through an aggregate type or data structure, passing each item to the given closure.
    `static Iterable<T>` | `each(Iterable<T> self, Closure closure)`
    `static Map<K, V>` | `each(Map<K, V> self, Closure closure)` Allows a Map to be iterated through using a closure.
    `static void` | `eachByte(Byte[] self, Closure closure)` Traverse through each byte of this Byte array.
    `static void` | `eachByte(byte[] self, Closure closure)` Traverse through each byte of this byte array.
    `static void` | `eachByte(File self, Closure closure)`
    `static void` | `eachByte(File self, int bufferLen, Closure closure)`
    `static void` | `eachByte(InputStream is, Closure closure)`
    `static void` | `eachByte(InputStream is, int bufferLen, Closure closure)`
    `static void` | `eachByte(URL url, Closure closure)`
    `static void` | `eachByte(URL url, int bufferLen, Closure closure)`
    `static void` | `eachCombination(Iterable self, Closure<?> function)` Applies a function on each combination of the input lists.
    `static void` | `eachDir(File self, Closure closure)`
    `static void` | `eachDirMatch(File self, Object nameFilter, Closure closure)`
    `static void` | `eachDirRecurse(File self, Closure closure)`
    `static void` | `eachFile(File self, FileType fileType, Closure closure)`
    `static void` | `eachFile(File self, Closure closure)`
    `static void` | `eachFileMatch(File self, FileType fileType, Object nameFilter, Closure closure)`
    `static void` | `eachFileMatch(File self, Object nameFilter, Closure closure)`
    `static void` | `eachFileRecurse(File self, FileType fileType, Closure closure)`
    `static void` | `eachFileRecurse(File self, Closure closure)`
    `static T` | `eachLine(CharSequence self, Closure<T> closure)`
    `static T` | `eachLine(CharSequence self, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(String self, Closure<T> closure)`
    `static T` | `eachLine(String self, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(File self, Closure<T> closure)`
    `static T` | `eachLine(File self, String charset, Closure<T> closure)`
    `static T` | `eachLine(File self, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(File self, String charset, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(InputStream stream, String charset, Closure<T> closure)`
    `static T` | `eachLine(InputStream stream, String charset, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(InputStream stream, Closure<T> closure)`
    `static T` | `eachLine(InputStream stream, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(URL url, Closure<T> closure)`
    `static T` | `eachLine(URL url, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(URL url, String charset, Closure<T> closure)`
    `static T` | `eachLine(URL url, String charset, int firstLine, Closure<T> closure)`
    `static T` | `eachLine(Reader self, Closure<T> closure)`
    `static T` | `eachLine(Reader self, int firstLine, Closure<T> closure)`
    `static String` | `eachMatch(CharSequence self, CharSequence regex, Closure closure)`
    `static String` | `eachMatch(CharSequence self, Pattern pattern, Closure closure)`
    `static String` | `eachMatch(String self, Pattern pattern, Closure closure)`
    `static String` | `eachMatch(String self, String regex, Closure closure)`
    `static void` | `eachObject(File self, Closure closure)`
    `static void` | `eachObject(ObjectInputStream ois, Closure closure)`
    `static Iterator<List<T>>` | `eachPermutation(Collection<T> self, Closure closure)` Iterates over all permutations of a collection, running a closure for each iteration.
    `static T` | `eachWithIndex(T self, Closure closure)` Iterates through an aggregate type or data structure, passing each item and the item's index (a counter starting at zero) to the given closure.
    `static Iterable<T>` | `eachWithIndex(Iterable<T> self, Closure closure)` Iterates through an iterable type, passing each item and the item's index (a counter starting at zero) to the given closure.
    `static Iterator<T>` | `eachWithIndex(Iterator<T> self, Closure closure)` Iterates through an iterator type, passing each item and the item's index (a counter starting at zero) to the given closure.
    `static Map<K, V>` | `eachWithIndex(Map<K, V> self, Closure closure)` Allows a Map to be iterated through using a closure.
    `static boolean` | `equals(int[] left, int[] right)` Compare the contents of this array to the contents of the given array.
    `static boolean` | `equals(Object[] left, List right)` Determines if the contents of this array are equal to the contents of the given list, in the same order.
    `static boolean` | `equals(List left, Object[] right)` Determines if the contents of this list are equal to the contents of the given array in the same order.
    `static boolean` | `equals(List left, List right)` Compare the contents of two Lists.
    `static boolean` | `equals(Set<T> self, Set<T> other)` Compare the contents of two Sets for equality using Groovy's coercion rules.
    `static boolean` | `equals(Map self, Map other)` Compares two Maps treating coerced numerical values as identical.
    `static boolean` | `every(Object self, Closure closure)` Used to determine if the given predicate closure is valid (i.e.
    `static boolean` | `every(Iterator<T> self, Closure closure)` Used to determine if the given predicate closure is valid (i.e.
    `static boolean` | `every(Iterable<T> self, Closure closure)` Used to determine if the given predicate closure is valid (i.e.
    `static boolean` | `every(Map<K, V> self, Closure closure)` Iterates over the entries of a map, and checks whether a predicate is valid for all entries.
    `static boolean` | `every(Object self)` Iterates over every element of a collection, and checks whether all elements are `true` according to the Groovy Truth.
    `static Process` | `execute(String self)`
    `static Process` | `execute(String self, String[] envp, File dir)`
    `static Process` | `execute(String self, List envp, File dir)`
    `static Process` | `execute(String[] commandArray)`
    `static Process` | `execute(String[] commandArray, String[] envp, File dir)`
    `static Process` | `execute(String[] commandArray, List envp, File dir)`
    `static Process` | `execute(List commands)`
    `static Process` | `execute(List commands, String[] envp, File dir)`
    `static Process` | `execute(List commands, List envp, File dir)`
    `static CharSequence` | `expand(CharSequence self)`
    `static CharSequence` | `expand(CharSequence self, int tabStop)`
    `static String` | `expand(String self)`
    `static String` | `expand(String self, int tabStop)`
    `static CharSequence` | `expandLine(CharSequence self, int tabStop)`
    `static String` | `expandLine(String self, int tabStop)`
    `static void` | `filterLine(Reader reader, Writer writer, Closure closure)`
    `static Writable` | `filterLine(File self, Closure closure)`
    `static Writable` | `filterLine(File self, String charset, Closure closure)`
    `static void` | `filterLine(File self, Writer writer, Closure closure)`
    `static void` | `filterLine(File self, Writer writer, String charset, Closure closure)`
    `static Writable` | `filterLine(Reader reader, Closure closure)`
    `static Writable` | `filterLine(InputStream self, Closure predicate)`
    `static Writable` | `filterLine(InputStream self, String charset, Closure predicate)`
    `static void` | `filterLine(InputStream self, Writer writer, Closure predicate)`
    `static void` | `filterLine(InputStream self, Writer writer, String charset, Closure predicate)`
    `static Writable` | `filterLine(URL self, Closure predicate)`
    `static Writable` | `filterLine(URL self, String charset, Closure predicate)`
    `static void` | `filterLine(URL self, Writer writer, Closure predicate)`
    `static void` | `filterLine(URL self, Writer writer, String charset, Closure predicate)`
    `static Object` | `find(Object self, Closure closure)` Finds the first value matching the closure condition
    `static Object` | `find(Object self)` Finds the first item matching the IDENTITY Closure (i.e. matching Groovy truth).
    `static T` | `find(Collection<T> self, Closure closure)` Finds the first value matching the closure condition.
    `static T` | `find(T[] self, Closure condition)` Finds the first element in the array that matches the given closure condition.
    `static T` | `find(Collection<T> self)` Finds the first item matching the IDENTITY Closure (i.e. matching Groovy truth).
    `static Map.Entry<K, V>` | `find(Map<K, V> self, Closure<?> closure)` Finds the first entry matching the closure condition.
    `static CharSequence` | `find(CharSequence self, CharSequence regex)`
    `static CharSequence` | `find(CharSequence self, CharSequence regex, Closure closure)`
    `static CharSequence` | `find(CharSequence self, Pattern pattern)`
    `static CharSequence` | `find(CharSequence self, Pattern pattern, Closure closure)`
    `static String` | `find(String self, Pattern pattern)`
    `static String` | `find(String self, Pattern pattern, Closure closure)`
    `static String` | `find(String self, String regex)`
    `static String` | `find(String self, String regex, Closure closure)`
    `static Collection<T>` | `findAll(Collection<T> self, Closure closure)` Finds all values matching the closure condition.
    `static Collection<T>` | `findAll(T[] self, Closure condition)` Finds all elements of the array matching the given Closure condition.
    `static Collection<T>` | `findAll(Collection<T> self)` Finds the items matching the IDENTITY Closure (i.e. matching Groovy truth).
    `static Collection<T>` | `findAll(T[] self)` Finds the elements of the array matching the IDENTITY Closure (i.e. matching Groovy truth).
    `static Collection` | `findAll(Object self, Closure closure)` Finds all items matching the closure condition.
    `static Collection` | `findAll(Object self)` Finds all items matching the IDENTITY Closure (i.e. matching Groovy truth).
    `static Map<K, V>` | `findAll(Map<K, V> self, Closure closure)` Finds all entries matching the closure condition.
    `static List<CharSequence>` | `findAll(CharSequence self, CharSequence regex)`
    `static List<T>` | `findAll(CharSequence self, CharSequence regex, Closure<T> closure)`
    `static List<CharSequence>` | `findAll(CharSequence self, Pattern pattern)`
    `static List<T>` | `findAll(CharSequence self, Pattern pattern, Closure<T> closure)`
    `static List<String>` | `findAll(String self, Pattern pattern)`
    `static List<T>` | `findAll(String self, Pattern pattern, Closure<T> closure)`
    `static List<String>` | `findAll(String self, String regex)`
    `static List<T>` | `findAll(String self, String regex, Closure<T> closure)`
    `static int` | `findIndexOf(Object self, Closure closure)` Iterates over the elements of an iterable collection of items and returns the index of the first item that matches the condition specified in the closure.
    `static int` | `findIndexOf(Object self, int startIndex, Closure closure)` Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index of the first item that matches the condition specified in the closure.
    `static List<Number>` | `findIndexValues(Object self, Closure closure)` Iterates over the elements of an iterable collection of items and returns the index values of the items that match the condition specified in the closure.
    `static List<Number>` | `findIndexValues(Object self, Number startIndex, Closure closure)` Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index values of the items that match the condition specified in the closure.
    `static int` | `findLastIndexOf(Object self, Closure closure)` Iterates over the elements of an iterable collection of items and returns the index of the last item that matches the condition specified in the closure.
    `static int` | `findLastIndexOf(Object self, int startIndex, Closure closure)` Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index of the last item that matches the condition specified in the closure.
    `static Object` | `findResult(Object self, Object defaultResult, Closure closure)` Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.
    `static Object` | `findResult(Object self, Closure closure)` Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns null.
    `static T` | `findResult(Collection<E> self, U defaultResult, Closure<V> closure)` Iterates through the collection calling the given closure for each item but stopping once the first non-null result is found and returning that result.
    `static T` | `findResult(Collection<U> self, Closure<T> closure)` Iterates through the collection calling the given closure for each item but stopping once the first non-null result is found and returning that result.
    `static T` | `findResult(Map<A, B> self, U defaultResult, Closure<V> closure)` Returns the first non-null closure result found by passing each map entry to the closure, otherwise the defaultResult is returned.
    `static T` | `findResult(Map<K, V> self, Closure<T> closure)` Returns the first non-null closure result found by passing each map entry to the closure, otherwise null is returned.
    `static Collection<T>` | `findResults(Collection<U> self, Closure<T> filteringTransform)` @deprecated Use the Iterable version of findResults instead
    `static Collection<T>` | `findResults(Iterable<U> self, Closure<T> filteringTransform)` Iterates through the Iterable transforming items using the supplied closure and collecting any non-null results.
    `static Collection<T>` | `findResults(Map<K, V> self, Closure<T> filteringTransform)` Iterates through the map transforming items using the supplied closure and collecting any non-null results.
    `static T` | `first(List<T> self)` Returns the first item from the List.
    `static T` | `first(Iterable<T> self)` Returns the first item from the Iterable.
    `static T` | `first(T[] self)` Returns the first item from the array.
    `static Collection<?>` | `flatten(Collection<?> self)` Flatten a collection.
    `static Collection<?>` | `flatten(Iterable<?> self)` Flatten an Iterable.
    `static Collection` | `flatten(Object[] self)` Flatten an array.
    `static Collection` | `flatten(boolean[] self)` Flatten an array.
    `static Collection` | `flatten(byte[] self)` Flatten an array.
    `static Collection` | `flatten(char[] self)` Flatten an array.
    `static Collection` | `flatten(short[] self)` Flatten an array.
    `static Collection` | `flatten(int[] self)` Flatten an array.
    `static Collection` | `flatten(long[] self)` Flatten an array.
    `static Collection` | `flatten(float[] self)` Flatten an array.
    `static Collection` | `flatten(double[] self)` Flatten an array.
    `static Collection<T>` | `flatten(Collection<T> self, Closure<? extends T> flattenUsing)` Flatten a collection.
    `static Collection<T>` | `flatten(Iterable<T> self, Closure<? extends T> flattenUsing)` Flatten an Iterable.
    `static V` | `get(Map<K, V> map, K key, V defaultValue)` Looks up an item in a Map for the given key and returns the value - unless there is no entry for the given key in which case add the default value to the map and return that.
    `static Object` | `getAt(Object self, String property)` Allows the subscript operator to be used to lookup dynamic property values.
    `static List<T>` | `getAt(List<T> self, Range range)` Support the range subscript operator for a List.
    `static List<T>` | `getAt(ListWithDefault<T> self, Collection indices)` Select a List of items from an eager or lazy List using a Collection to identify the indices to be selected.
    `static List<T>` | `getAt(ListWithDefault<T> self, Range range)` Support the range subscript operator for an eager or lazy List.
    `static List<T>` | `getAt(ListWithDefault<T> self, EmptyRange range)` Support the range subscript operator for an eager or lazy List.
    `static List<T>` | `getAt(List<T> self, EmptyRange range)` Support the range subscript operator for a List.
    `static List<T>` | `getAt(List<T> self, Collection indices)` Select a List of items from a List using a Collection to identify the indices to be selected.
    `static List<T>` | `getAt(T[] self, Collection indices)` Select a List of items from an Object array using a Collection to identify the indices to be selected.
    `static List<T>` | `getAt(T[] array, Range range)` Support the range subscript operator for an Array
    `static List<T>` | `getAt(T[] array, IntRange range)` @param array an Array of Objects
    `static List<T>` | `getAt(T[] array, EmptyRange range)` @param array an Array of Objects
    `static List<T>` | `getAt(T[] array, ObjectRange range)` @param array an Array of Objects
    `static T` | `getAt(List<T> self, int idx)` Support the subscript operator for a List.
    `static T` | `getAt(Iterator<T> self, int idx)` Support the subscript operator for an Iterator.
    `static T` | `getAt(Iterable<T> self, int idx)` Support the subscript operator for an Iterable.
    `static V` | `getAt(Map<K, V> self, K key)` Support the subscript operator for a Map.
    `static List` | `getAt(Collection coll, String property)` Support the subscript operator for Collection.
    `static List<Byte>` | `getAt(byte[] array, Range range)` Support the subscript operator with a range for a byte array
    `static List<Character>` | `getAt(char[] array, Range range)` Support the subscript operator with a range for a char array
    `static List<Short>` | `getAt(short[] array, Range range)` Support the subscript operator with a range for a short array
    `static List<Integer>` | `getAt(int[] array, Range range)` Support the subscript operator with a range for an int array
    `static List<Long>` | `getAt(long[] array, Range range)` Support the subscript operator with a range for a long array
    `static List<Float>` | `getAt(float[] array, Range range)` Support the subscript operator with a range for a float array
    `static List<Double>` | `getAt(double[] array, Range range)` Support the subscript operator with a range for a double array
    `static List<Boolean>` | `getAt(boolean[] array, Range range)` Support the subscript operator with a range for a boolean array
    `static List<Byte>` | `getAt(byte[] array, IntRange range)` Support the subscript operator with an IntRange for a byte array
    `static List<Character>` | `getAt(char[] array, IntRange range)` Support the subscript operator with an IntRange for a char array
    `static List<Short>` | `getAt(short[] array, IntRange range)` Support the subscript operator with an IntRange for a short array
    `static List<Integer>` | `getAt(int[] array, IntRange range)` Support the subscript operator with an IntRange for an int array
    `static List<Long>` | `getAt(long[] array, IntRange range)` Support the subscript operator with an IntRange for a long array
    `static List<Float>` | `getAt(float[] array, IntRange range)` Support the subscript operator with an IntRange for a float array
    `static List<Double>` | `getAt(double[] array, IntRange range)` Support the subscript operator with an IntRange for a double array
    `static List<Boolean>` | `getAt(boolean[] array, IntRange range)` Support the subscript operator with an IntRange for a boolean array
    `static List<Byte>` | `getAt(byte[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for a byte array
    `static List<Character>` | `getAt(char[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for a char array
    `static List<Short>` | `getAt(short[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for a short array
    `static List<Integer>` | `getAt(int[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for an int array
    `static List<Long>` | `getAt(long[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for a long array
    `static List<Float>` | `getAt(float[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for a float array
    `static List<Double>` | `getAt(double[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for a double array
    `static List<Boolean>` | `getAt(boolean[] array, ObjectRange range)` Support the subscript operator with an ObjectRange for a byte array
    `static List<Byte>` | `getAt(byte[] array, Collection indices)` Support the subscript operator with a collection for a byte array
    `static List<Character>` | `getAt(char[] array, Collection indices)` Support the subscript operator with a collection for a char array
    `static List<Short>` | `getAt(short[] array, Collection indices)` Support the subscript operator with a collection for a short array
    `static List<Integer>` | `getAt(int[] array, Collection indices)` Support the subscript operator with a collection for an int array
    `static List<Long>` | `getAt(long[] array, Collection indices)` Support the subscript operator with a collection for a long array
    `static List<Float>` | `getAt(float[] array, Collection indices)` Support the subscript operator with a collection for a float array
    `static List<Double>` | `getAt(double[] array, Collection indices)` Support the subscript operator with a collection for a double array
    `static List<Boolean>` | `getAt(boolean[] array, Collection indices)` Support the subscript operator with a collection for a boolean array
    `static boolean` | `getAt(BitSet self, int index)` Support the subscript operator for a Bitset
    `static BitSet` | `getAt(BitSet self, IntRange range)` Support retrieving a subset of a BitSet using a Range
    `static CharSequence` | `getAt(CharSequence self, Collection indices)`
    `static CharSequence` | `getAt(CharSequence text, EmptyRange range)`
    `static CharSequence` | `getAt(CharSequence text, int index)`
    `static CharSequence` | `getAt(CharSequence text, IntRange range)`
    `static CharSequence` | `getAt(CharSequence text, Range range)`
    `static List` | `getAt(Matcher self, Collection indices)`
    `static Object` | `getAt(Matcher matcher, int idx)`
    `static String` | `getAt(String self, Collection indices)`
    `static String` | `getAt(String text, EmptyRange range)`
    `static String` | `getAt(String text, int index)`
    `static String` | `getAt(String text, IntRange range)`
    `static String` | `getAt(String text, Range range)`
    `static byte[]` | `getBytes(File file)`
    `static byte[]` | `getBytes(URL url)`
    `static byte[]` | `getBytes(InputStream is)`
    `static char[]` | `getChars(CharSequence self)`
    `static char[]` | `getChars(String self)`
    `static int` | `getCount(Matcher matcher)`
    `static MetaClass` | `getMetaClass(Class c)` Adds a "metaClass" property to all class objects so you can use the syntax `String.metaClass.myMethod = { println "foo" }`
    `static MetaClass` | `getMetaClass(Object obj)` Obtains a MetaClass for an object either from the registry or in the case of a GroovyObject from the object itself.
    `static MetaClass` | `getMetaClass(GroovyObject obj)` Obtains a MetaClass for an object either from the registry or in the case of a GroovyObject from the object itself.
    `static List<PropertyValue>` | `getMetaPropertyValues(Object self)` Retrieves the list of MetaProperty objects for 'self' and wraps it in a list of PropertyValue objects that additionally provide the value for each property of 'self'.
    `static Map` | `getProperties(Object self)` Convenience method that calls getMetaPropertyValues(java.lang.Object)(self) and provides the data in form of simple key/value pairs, i.e.
    `static ClassLoader` | `getRootLoader(ClassLoader self)` Iterates through the classloader parents until it finds a loader with a class named "org.codehaus.groovy.tools.RootLoader".
    `protected static List` | `getSubList(List self, List splice)`
    `static String` | `getText(File file, String charset)`
    `static String` | `getText(File file)`
    `static String` | `getText(URL url)`
    `static String` | `getText(URL url, Map parameters)`
    `static String` | `getText(URL url, String charset)`
    `static String` | `getText(URL url, Map parameters, String charset)`
    `static String` | `getText(InputStream is)`
    `static String` | `getText(InputStream is, String charset)`
    `static String` | `getText(Reader reader)`
    `static String` | `getText(BufferedReader reader)`
    `static Collection` | `grep(Object self, Object filter)` Iterates over the collection of items which this Object represents and returns each item that matches the given filter - calling the `isCase(java.lang.Object, java.lang.Object)` method used by switch statements.
    `static Collection<T>` | `grep(Collection<T> self, Object filter)` Iterates over the collection of items and returns each item that matches the given filter - calling the `isCase(java.lang.Object, java.lang.Object)` method used by switch statements.
    `static Collection<T>` | `grep(T[] self, Object filter)` Iterates over the array of items and returns a collection of items that match the given filter - calling the `isCase(java.lang.Object, java.lang.Object)` method used by switch statements.
    `static Collection` | `grep(Object self)` Iterates over the collection of items which this Object represents and returns each item that matches using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth.
    `static Collection<T>` | `grep(Collection<T> self)` Iterates over the collection returning each element that matches using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth.
    `static Collection<T>` | `grep(T[] self)` Iterates over the array returning each element that matches using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth.
    `protected static void` | `groupAnswer(Map<K, List<T>> answer, T element, K value)` Groups the current element according to the value
    `static Map<K, List<T>>` | `groupBy(Collection<T> self, Closure<K> closure)` @deprecated Use the Iterable version of groupBy instead
    `static Map<K, List<T>>` | `groupBy(Iterable<T> self, Closure<K> closure)` Sorts all Iterable members into groups determined by the supplied mapping closure.
    `static Map<K, List<T>>` | `groupBy(T[] self, Closure<K> closure)` Sorts all array members into groups determined by the supplied mapping closure.
    `static Map` | `groupBy(Collection self, Object... closures)` @deprecated Use the Iterable version of groupBy instead
    `static Map` | `groupBy(Iterable self, Object... closures)` Sorts all Iterable members into (sub)groups determined by the supplied mapping closures.
    `static Map` | `groupBy(Object[] self, Object... closures)` Sorts all array members into (sub)groups determined by the supplied mapping closures as per the Iterable variant of this method.
    `static Map` | `groupBy(Collection self, List<Closure> closures)` Sorts all collection members into (sub)groups determined by the supplied mapping closures.
    `static Map` | `groupBy(Iterable self, List<Closure> closures)` Sorts all Iterable members into (sub)groups determined by the supplied mapping closures.
    `static Map` | `groupBy(Object[] self, List<Closure> closures)` Sorts all array members into (sub)groups determined by the supplied mapping closures as per the list variant of this method.
    `static Map<G, Map<K, V>>` | `groupBy(Map<K, V> self, Closure<G> closure)` Groups the members of a map into sub maps determined by the supplied mapping closure.
    `static Map<Object, Map>` | `groupBy(Map self, Object... closures)` Groups the members of a map into sub maps determined by the supplied mapping closures.
    `static Map<Object, Map>` | `groupBy(Map self, List<Closure> closures)` Groups the members of a map into sub maps determined by the supplied mapping closures.
    `static Map<G, List<Map.Entry<K, V>>>` | `groupEntriesBy(Map<K, V> self, Closure<G> closure)` Groups all map entries into groups determined by the supplied mapping closure.
    `static boolean` | `hasGroup(Matcher matcher)`
    `static MetaProperty` | `hasProperty(Object self, String name)`
    `static T` | `head(List<T> self)` Returns the first item from the List.
    `static T` | `head(T[] self)` Returns the first item from the Object array.
    `static T` | `identity(Object self, Closure<T> closure)` Allows the closure to be called for the object reference self.
    `static Boolean` | `implies(Boolean left, Boolean right)` Logical implication of two boolean operators
    `static T` | `inject(Collection<T> self, Closure<V> closure)` Performs the same function as the version of inject that takes an initial value, but uses the head of the Collection as the initial value, and iterates over the tail.
    `static T` | `inject(Collection<E> self, U initialValue, Closure<V> closure)` Iterates through the given Collection, passing in the initial value to the 2-arg closure along with the first item.
    `static T` | `inject(Map<Key, Value> self, U initialValue, Closure<V> closure)` Iterates through the given Map, passing in the initial value to the 2-arg Closure along with the first item (or 3-arg Closure along with the first key and value).
    `static T` | `inject(Iterator<E> self, U initialValue, Closure<V> closure)` Iterates through the given Iterator, passing in the initial value to the closure along with the first item.
    `static T` | `inject(Object self, Closure<V> closure)` Iterates through the given Object, passing in the first value to the closure along with the first item.
    `static T` | `inject(Object self, U initialValue, Closure<V> closure)` Iterates through the given Object, passing in the initial value to the closure along with the first item.
    `static T` | `inject(E[] self, Closure<V> closure)` Iterates through the given array as with inject(Object[],initialValue,closure), but using the first element of the array as the initialValue, and then iterating the remaining elements of the array.
    `static T` | `inject(E[] self, U initialValue, Closure<V> closure)` Iterates through the given array, passing in the initial value to the closure along with the first item.
    `static String` | `inspect(Object self)` Inspects returns the String that matches what would be typed into a terminal to create this object.
    `static Number` | `intdiv(Character left, Number right)` Integer Divide a Character by a Number.
    `static Number` | `intdiv(Number left, Character right)` Integer Divide a Number by a Character.
    `static Number` | `intdiv(Character left, Character right)` Integer Divide two Characters.
    `static Number` | `intdiv(Number left, Number right)` Integer Divide two Numbers.
    `static Collection<T>` | `intersect(Collection<T> left, Collection<T> right)` Create a Collection composed of the intersection of both collections.
    `static Map<K, V>` | `intersect(Map<K, V> left, Map<K, V> right)` Create a Map composed of the intersection of both maps.
    `static Object` | `invokeMethod(Object object, String method, Object arguments)` Provide a dynamic method invocation method which can be overloaded in classes to implement dynamic proxies easily.
    `static boolean` | `is(Object self, Object other)` Identity check.
    `static boolean` | `isAllWhitespace(CharSequence self)`
    `static boolean` | `isAllWhitespace(String self)`
    `static boolean` | `isBigDecimal(CharSequence self)`
    `static boolean` | `isBigDecimal(String self)`
    `static boolean` | `isBigInteger(CharSequence self)`
    `static boolean` | `isBigInteger(String self)`
    `static boolean` | `isCase(Object caseValue, Object switchValue)` Method for overloading the behavior of the 'case' method in switch statements.
    `static boolean` | `isCase(Class caseValue, Object switchValue)` Special 'Case' implementation for Class, which allows testing for a certain class in a switch statement.
    `static boolean` | `isCase(Collection caseValue, Object switchValue)` 'Case' implementation for collections which tests if the 'switch' operand is contained in any of the 'case' values.
    `static boolean` | `isCase(Map caseValue, Object switchValue)` 'Case' implementation for maps which tests the groovy truth value obtained using the 'switch' operand as key.
    `static boolean` | `isCase(Number caseValue, Number switchValue)` Special 'case' implementation for all numbers, which delegates to the `compareTo()` method for comparing numbers of different types.
    `static boolean` | `isCase(CharSequence caseValue, Object switchValue)`
    `static boolean` | `isCase(GString caseValue, Object switchValue)`
    `static boolean` | `isCase(Pattern caseValue, Object switchValue)`
    `static boolean` | `isCase(String caseValue, Object switchValue)`
    `static boolean` | `isDigit(Character self)` Determines if a character is a digit.
    `static boolean` | `isDouble(CharSequence self)`
    `static boolean` | `isDouble(String self)`
    `static boolean` | `isFloat(CharSequence self)`
    `static boolean` | `isFloat(String self)`
    `static boolean` | `isInteger(CharSequence self)`
    `static boolean` | `isInteger(String self)`
    `static boolean` | `isLetter(Character self)` Determines if a character is a letter.
    `static boolean` | `isLetterOrDigit(Character self)` Determines if a character is a letter or digit.
    `static boolean` | `isLong(CharSequence self)`
    `static boolean` | `isLong(String self)`
    `static boolean` | `isLowerCase(Character self)` Determine if a Character is lowercase.
    `static boolean` | `isNumber(CharSequence self)`
    `static boolean` | `isNumber(String self)`
    `static boolean` | `isUpperCase(Character self)` Determine if a Character is uppercase.
    `static boolean` | `isWhitespace(Character self)` Determines if a character is a whitespace character.
    `static Iterator<T>` | `iterator(T[] a)` Attempts to create an Iterator for the given object by first converting it to a Collection.
    `static Iterator` | `iterator(Object o)` Attempts to create an Iterator for the given object by first converting it to a Collection.
    `static Iterator<T>` | `iterator(Enumeration<T> enumeration)` Allows an Enumeration to behave like an Iterator.
    `static Iterator<T>` | `iterator(Iterator<T> self)` An identity function for iterators, supporting 'duck-typing' when trying to get an iterator for each object within a collection, some of which may already be iterators.
    `static Iterator` | `iterator(Matcher matcher)`
    `static Iterator<String>` | `iterator(Reader self)`
    `static Iterator<Byte>` | `iterator(InputStream self)`
    `static Iterator<Byte>` | `iterator(DataInputStream self)`
    `static String` | `join(Iterator<Object> self, String separator)` Concatenates the `toString()` representation of each item from the iterator, with the given String as a separator between each item.
    `static String` | `join(Collection self, String separator)` @deprecated Use the Iterable version of join instead
    `static String` | `join(Iterable self, String separator)` Concatenates the `toString()` representation of each item in this Iterable, with the given String as a separator between each item.
    `static String` | `join(Object[] self, String separator)` Concatenates the `toString()` representation of each items in this array, with the given String as a separator between each item.
    `static T` | `last(List<T> self)` Returns the last item from the List.
    `static T` | `last(Iterable<T> self)` Returns the last item from the Iterable.
    `static T` | `last(T[] self)` Returns the last item from the array.
    `static Collection<T>` | `leftShift(Collection<T> self, T value)` Overloads the left shift operator to provide an easy way to append objects to a Collection.
    `static BlockingQueue<T>` | `leftShift(BlockingQueue<T> self, T value)` Overloads the left shift operator to provide an easy way to append objects to a BlockingQueue.
    `static Map<K, V>` | `leftShift(Map<K, V> self, Map.Entry<K, V> entry)` Overloads the left shift operator to provide an easy way to append Map.Entry values to a Map.
    `static Map<K, V>` | `leftShift(Map<K, V> self, Map<K, V> other)` Overloads the left shift operator to provide an easy way to put one maps entries into another map.
    `static Number` | `leftShift(Number self, Number operand)` Implementation of the left shift operator for integral types.
    `static StringBuilder` | `leftShift(CharSequence self, Object value)`
    `static StringBuffer` | `leftShift(String self, Object value)`
    `static StringBuffer` | `leftShift(StringBuffer self, Object value)`
    `static StringBuilder` | `leftShift(StringBuilder self, Object value)`
    `static Writer` | `leftShift(Socket self, Object value)`
    `static OutputStream` | `leftShift(Socket self, byte[] value)`
    `static Writer` | `leftShift(Writer self, Object value)`
    `static Writer` | `leftShift(OutputStream self, Object value)`
    `static void` | `leftShift(ObjectOutputStream self, Object value)`
    `static OutputStream` | `leftShift(OutputStream self, InputStream in)`
    `static OutputStream` | `leftShift(OutputStream self, byte[] value)`
    `static File` | `leftShift(File file, Object text)`
    `static File` | `leftShift(File file, byte[] bytes)`
    `static File` | `leftShift(File file, InputStream data)`
    `static boolean` | `matches(CharSequence self, Pattern pattern)`
    `static boolean` | `matches(String self, Pattern pattern)`
    `static Map.Entry<K, V>` | `max(Map<K, V> self, Closure closure)` Selects an entry in the map having the maximum calculated value as determined by the supplied closure.
    `static T` | `max(Collection<T> self)` @deprecated Use the Iterable version of max instead
    `static T` | `max(Iterable<T> self)` Adds max() method to Iterable objects.
    `static T` | `max(Iterator<T> self)` Adds max() method to Iterator objects.
    `static T` | `max(T[] self)` Adds max() method to Object arrays.
    `static T` | `max(Collection<T> self, Closure closure)` @deprecated Use the Iterable version of max instead
    `static T` | `max(Iterable<T> self, Closure closure)` Selects an item in the collection having the maximum value as determined by the supplied closure.
    `static T` | `max(Iterator<T> self, Closure closure)` Selects the maximum value found from the Iterator using the closure to determine the correct ordering.
    `static T` | `max(T[] self, Closure closure)` Selects the maximum value found from the Object array using the closure to determine the correct ordering.
    `static T` | `max(Collection<T> self, Comparator<T> comparator)` @deprecated Use the Iterable version of max instead
    `static T` | `max(Iterable<T> self, Comparator<T> comparator)` Selects the maximum value found in the Iterable using the given comparator.
    `static T` | `max(Iterator<T> self, Comparator<T> comparator)` Selects the maximum value found from the Iterator using the given comparator.
    `static T` | `max(T[] self, Comparator<T> comparator)` Selects the maximum value found from the Object array using the given comparator.
    `static MetaClass` | `metaClass(Class self, Closure closure)` Sets/updates the metaclass for a given class to a closure.
    `static MetaClass` | `metaClass(Object self, Closure closure)` Sets/updates the metaclass for a given object to a closure.
    `static T` | `min(Collection<T> self)` @deprecated Use the Iterable version of min instead
    `static T` | `min(Iterable<T> self)` Adds min() method to Collection objects.
    `static T` | `min(Iterator<T> self)` Adds min() method to Iterator objects.
    `static T` | `min(T[] self)` Adds min() method to Object arrays.
    `static T` | `min(Collection<T> self, Comparator<T> comparator)` @deprecated Use the Iterable version of min instead
    `static T` | `min(Iterable<T> self, Comparator<T> comparator)` Selects the minimum value found in the Iterable using the given comparator.
    `static T` | `min(Iterator<T> self, Comparator<T> comparator)` Selects the minimum value found from the Iterator using the given comparator.
    `static T` | `min(T[] self, Comparator<T> comparator)` Selects the minimum value found from the Object array using the given comparator.
    `static T` | `min(Collection<T> self, Closure closure)` @deprecated Use the Iterable version of min instead
    `static T` | `min(Iterable<T> self, Closure closure)` Selects an item in the collection having the minimum value as determined by the supplied closure.
    `static Map.Entry<K, V>` | `min(Map<K, V> self, Closure closure)` Selects an entry in the map having the minimum calculated value as determined by the supplied closure.
    `static T` | `min(Iterator<T> self, Closure closure)` Selects the minimum value found from the Iterator using the closure to determine the correct ordering.
    `static T` | `min(T[] self, Closure closure)` Selects the minimum value found from the Object array using the closure to determine the correct ordering.
    `static Set<T>` | `minus(Set<T> self, Collection<?> removeMe)` Create a Set composed of the elements of the first Set minus the elements of the given Collection.
    `static Set<T>` | `minus(Set<T> self, Iterable<?> removeMe)` Create a Set composed of the elements of the first Set minus the elements from the given Iterable.
    `static Set<T>` | `minus(Set<T> self, Object removeMe)` Create a Set composed of the elements of the first Set minus the given element.
    `static T[]` | `minus(T[] self, Iterable removeMe)` Create an array composed of the elements of the first array minus the elements of the given Iterable.
    `static T[]` | `minus(T[] self, Object[] removeMe)` Create an array composed of the elements of the first array minus the elements of the given array.
    `static List<T>` | `minus(List<T> self, Collection<?> removeMe)` Create a List composed of the elements of the first list minus every occurrence of elements of the given Collection.
    `static List<T>` | `minus(List<T> self, Iterable<?> removeMe)` Create a List composed of the elements of the first list minus every occurrence of elements of the given Iterable.
    `static List<T>` | `minus(List<T> self, Object removeMe)` Create a new List composed of the elements of the first list minus every occurrence of the given element to remove.
    `static T[]` | `minus(T[] self, Object removeMe)` Create a new object array composed of the elements of the first array minus the element to remove.
    `static Map<K, V>` | `minus(Map<K, V> self, Map removeMe)` Create a Map composed of the entries of the first map minus the entries of the given map.
    `static Number` | `minus(Character left, Number right)` @todo maybe a double dispatch thing to handle new large numbers?
    `static Number` | `minus(Number left, Character right)` Subtract a Character from a Number.
    `static Number` | `minus(Character left, Character right)` Subtract one Character from another.
    `static CharSequence` | `minus(CharSequence self, Object target)`
    `static String` | `minus(String self, Object target)`
    `static void` | `mixin(MetaClass self, List<Class> categoryClasses)` Extend object with category methods.
    `static void` | `mixin(Class self, List<Class> categoryClasses)` Extend class globally with category methods.
    `static void` | `mixin(Class self, Class categoryClass)` Extend class globally with category methods.
    `static void` | `mixin(Class self, Class[] categoryClass)` Extend class globally with category methods.
    `static void` | `mixin(MetaClass self, Class categoryClass)` Extend class globally with category methods.
    `static void` | `mixin(MetaClass self, Class[] categoryClass)` Extend class globally with category methods.
    `static Number` | `mod(Number left, Number right)` Performs a division modulus operation.
    `static List<T>` | `multiply(Collection<T> self, Number factor)` Create a List composed of the elements of this list, repeated a certain number of times.
    `static Number` | `multiply(Character left, Number right)` Multiply a Character by a Number.
    `static Number` | `multiply(Number left, Character right)` Multiply a Number by a Character.
    `static Number` | `multiply(Character left, Character right)` Multiply two Characters.
    `static Number` | `multiply(BigDecimal left, Double right)` Multiply a BigDecimal and a Double.
    `static Number` | `multiply(BigDecimal left, BigInteger right)` Multiply a BigDecimal and a BigInteger.
    `static CharSequence` | `multiply(CharSequence self, Number factor)`
    `static String` | `multiply(String self, Number factor)`
    `static DataInputStream` | `newDataInputStream(File file)`
    `static DataOutputStream` | `newDataOutputStream(File file)`
    `static BufferedInputStream` | `newInputStream(File file)`
    `static BufferedInputStream` | `newInputStream(URL url)`
    `static BufferedInputStream` | `newInputStream(URL url, Map parameters)`
    `static T` | `newInstance(Class<T> c)` Convenience method to dynamically create a new instance of this class.
    `static T` | `newInstance(Class<T> c, Object[] args)` Helper to construct a new instance from the given arguments.
    `static ObjectInputStream` | `newObjectInputStream(File file)`
    `static ObjectInputStream` | `newObjectInputStream(InputStream inputStream)`
    `static ObjectInputStream` | `newObjectInputStream(InputStream inputStream, ClassLoader classLoader)`
    `static ObjectInputStream` | `newObjectInputStream(File file, ClassLoader classLoader)`
    `static ObjectOutputStream` | `newObjectOutputStream(File file)`
    `static ObjectOutputStream` | `newObjectOutputStream(OutputStream outputStream)`
    `static BufferedOutputStream` | `newOutputStream(File file)`
    `static PrintWriter` | `newPrintWriter(File file)`
    `static PrintWriter` | `newPrintWriter(File file, String charset)`
    `static PrintWriter` | `newPrintWriter(Writer writer)`
    `static BufferedReader` | `newReader(File file)`
    `static BufferedReader` | `newReader(File file, String charset)`
    `static BufferedReader` | `newReader(InputStream self)`
    `static BufferedReader` | `newReader(InputStream self, String charset)`
    `static BufferedReader` | `newReader(URL url)`
    `static BufferedReader` | `newReader(URL url, Map parameters)`
    `static BufferedReader` | `newReader(URL url, String charset)`
    `static BufferedReader` | `newReader(URL url, Map parameters, String charset)`
    `static BufferedWriter` | `newWriter(File file)`
    `static BufferedWriter` | `newWriter(File file, boolean append)`
    `static BufferedWriter` | `newWriter(File file, String charset, boolean append)`
    `static BufferedWriter` | `newWriter(File file, String charset)`
    `static Character` | `next(Character self)` Increment a Character by one.
    `static Number` | `next(Number self)` Increment a Number by one.
    `static CharSequence` | `next(CharSequence self)`
    `static String` | `next(String self)`
    `static CharSequence` | `normalize(CharSequence self)`
    `static String` | `normalize(String self)`
    `static int` | `numberAwareCompareTo(Comparable self, Comparable other)` Provides a method that compares two comparables using Groovy's default number aware comparator.
    `static Number` | `or(Number left, Number right)` Bitwise OR together two numbers.
    `static BitSet` | `or(BitSet left, BitSet right)` Bitwise OR together two BitSets.
    `static Boolean` | `or(Boolean left, Boolean right)` Logical disjunction of two boolean operators
    `static CharSequence` | `padLeft(CharSequence self, Number numberOfChars)`
    `static CharSequence` | `padLeft(CharSequence self, Number numberOfChars, CharSequence padding)`
    `static String` | `padLeft(String self, Number numberOfChars)`
    `static String` | `padLeft(String self, Number numberOfChars, String padding)`
    `static CharSequence` | `padRight(CharSequence self, Number numberOfChars)`
    `static CharSequence` | `padRight(CharSequence self, Number numberOfChars, CharSequence padding)`
    `static String` | `padRight(String self, Number numberOfChars)`
    `static String` | `padRight(String self, Number numberOfChars, String padding)`
    `static Set<List<T>>` | `permutations(List<T> self)` Finds all permutations of a collection.
    `static List<V>` | `permutations(List<T> self, Closure<V> function)` Finds all permutations of a collection, applies a function to each permutation and collects the result into a list.
    `static Map<K, V>` | `plus(Map<K, V> left, Map<K, V> right)` Returns a new `Map` containing all entries from `left` and `right`, giving precedence to `right`.
    `static Map<K, V>` | `plus(Map<K, V> self, Collection<Map.Entry<K, V>> entries)` Returns a new `Map` containing all entries from `self` and `entries`, giving precedence to `entries`.
    `static T[]` | `plus(T[] left, T[] right)` Create an array as a union of two arrays.
    `static T[]` | `plus(T[] left, T right)` Create an array containing elements from an original array plus an additional appended element.
    `static T[]` | `plus(T[] left, Collection<T> right)` Create an array containing elements from an original array plus those from a Collection.
    `static T[]` | `plus(T[] left, Iterable<T> right)` Create an array containing elements from an original array plus those from an Iterable.
    `static Collection<T>` | `plus(Collection<T> left, Collection<T> right)` Create a Collection as a union of two collections.
    `static Collection<T>` | `plus(Collection<T> left, Iterable<T> right)` Create a Collection as a union of a Collection and an Iterable.
    `static List<T>` | `plus(List<T> self, int index, T[] items)` Creates a new List by inserting all of the elements in the specified array to the elements from the original List at the specified index.
    `static List<T>` | `plus(List<T> self, int index, List<T> additions)` Creates a new List by inserting all of the elements in the given additions List to the elements from the original List at the specified index.
    `static List<T>` | `plus(List<T> self, int index, Iterable<T> additions)` Creates a new List by inserting all of the elements in the given Iterable to the elements from this List at the specified index.
    `static Collection<T>` | `plus(Collection<T> left, T right)` Create a collection as a union of a Collection and an Object.
    `static Number` | `plus(Character left, Number right)` Add a Character and a Number.
    `static Number` | `plus(Number left, Character right)` Add a Number and a Character.
    `static Number` | `plus(Character left, Character right)` Add one Character to another.
    `static CharSequence` | `plus(CharSequence left, Object value)`
    `static String` | `plus(Number value, String right)`
    `static String` | `plus(String left, Object value)`
    `static String` | `plus(StringBuffer left, String value)`
    `static T` | `pop(List<T> self)` Removes the last item from the List.
    `static Number` | `power(Number self, Number exponent)` Power of a Number to a certain exponent.
    `static Number` | `power(BigDecimal self, Integer exponent)` Power of a BigDecimal to an integer certain exponent.
    `static Number` | `power(BigInteger self, Integer exponent)` Power of a BigInteger to an integer certain exponent.
    `static Number` | `power(Integer self, Integer exponent)` Power of an integer to an integer certain exponent.
    `static Number` | `power(Long self, Integer exponent)` Power of a long to an integer certain exponent.
    `static Character` | `previous(Character self)` Decrement a Character by one.
    `static Number` | `previous(Number self)` Decrement a Number by one.
    `static CharSequence` | `previous(CharSequence self)`
    `static String` | `previous(String self)`
    `protected static Object` | `primitiveArrayGet(Object self, int idx)` Implements the getAt(int) method for primitive type arrays.
    `protected static List` | `primitiveArrayGet(Object self, Range range)` Implements the getAt(Range) method for primitive type arrays.
    `protected static List` | `primitiveArrayGet(Object self, Collection indices)` Implements the getAt(Collection) method for primitive type arrays.
    `protected static Object` | `primitiveArrayPut(Object self, int idx, Object newValue)` Implements the setAt(int idx) method for primitive type arrays.
    `static void` | `print(Object self, Object value)` Print a value formatted Groovy style to self if it is a Writer, otherwise to the standard output stream.
    `static void` | `print(PrintWriter self, Object value)` Print a value formatted Groovy style to the print writer.
    `static void` | `print(PrintStream self, Object value)` Print a value formatted Groovy style to the print stream.
    `static void` | `print(Closure self, Object value)` Print a value to the standard output stream.
    `static void` | `print(Object self, PrintWriter out)` Print to a console in interactive format.
    `static void` | `printf(Object self, String format, Object[] values)` Printf to a console.
    `static void` | `printf(Object self, String format, Object arg)` Prints a formatted string using the specified format string and arguments.
    `static void` | `println(Object self)` Print a linebreak to the standard output stream.
    `static void` | `println(Closure self)` Print a linebreak to the standard output stream.
    `static void` | `println(Object self, Object value)` Print a value formatted Groovy style (followed by a newline) to self if it is a Writer, otherwise to the standard output stream.
    `static void` | `println(PrintWriter self, Object value)` Print a value formatted Groovy style (followed by a newline) to the print writer.
    `static void` | `println(PrintStream self, Object value)` Print a value formatted Groovy style (followed by a newline) to the print stream.
    `static void` | `println(Closure self, Object value)` Print a value (followed by a newline) to the standard output stream.
    `static void` | `println(Object self, PrintWriter out)` Print to a console in interactive format.
    `static boolean` | `push(List<T> self, T value)` Appends an item to the List.
    `static Map<K, V>` | `putAll(Map<K, V> self, Collection<Map.Entry<K, V>> entries)` Provides an easy way to append multiple Map.Entry values to a Map.
    `static void` | `putAt(Object self, String property, Object newValue)` Allows the subscript operator to be used to set dynamically named property values.
    `static void` | `putAt(List<T> self, int idx, T value)` A helper method to allow lists to work with subscript operators.
    `static void` | `putAt(List self, EmptyRange range, Object value)` A helper method to allow lists to work with subscript operators.
    `static void` | `putAt(List self, EmptyRange range, Collection value)` A helper method to allow lists to work with subscript operators.
    `static void` | `putAt(List self, IntRange range, Collection col)` List subscript assignment operator when given a range as the index and the assignment operand is a collection.
    `static void` | `putAt(List self, IntRange range, Object value)` List subscript assignment operator when given a range as the index.
    `static void` | `putAt(List self, List splice, List values)` A helper method to allow lists to work with subscript operators.
    `static void` | `putAt(List self, List splice, Object value)` A helper method to allow lists to work with subscript operators.
    `static V` | `putAt(Map<K, V> self, K key, V value)` A helper method to allow maps to work with subscript operators
    `static void` | `putAt(BitSet self, IntRange range, boolean value)` Support assigning a range of values with a single assignment statement.
    `static void` | `putAt(BitSet self, int index, boolean value)` Support subscript-style assignment for a BitSet.
    `static void` | `putAt(StringBuffer self, EmptyRange range, Object value)`
    `static void` | `putAt(StringBuffer self, IntRange range, Object value)`
    `static byte[]` | `readBytes(File file)`
    `static String` | `readLine(Reader self)`
    `static List<CharSequence>` | `readLines(CharSequence self)`
    `static List<String>` | `readLines(String self)`
    `static List<String>` | `readLines(File file)`
    `static List<String>` | `readLines(File file, String charset)`
    `static List<String>` | `readLines(InputStream stream)`
    `static List<String>` | `readLines(InputStream stream, String charset)`
    `static List<String>` | `readLines(URL self)`
    `static List<String>` | `readLines(URL self, String charset)`
    `static List<String>` | `readLines(Reader reader)`
    `static boolean` | `removeAll(Collection self, Object[] items)` Modifies this collection by removing its elements that are contained within the specified object array.
    `static boolean` | `removeAll(Collection<T> self, Closure condition)` Modifies this collection by removing the elements that are matched according to the specified closure condition.
    `static boolean` | `renameTo(File self, String newPathName)`
    `static CharSequence` | `replaceAll(CharSequence self, CharSequence regex, CharSequence replacement)`
    `static CharSequence` | `replaceAll(CharSequence self, CharSequence regex, Closure closure)`
    `static CharSequence` | `replaceAll(CharSequence self, Pattern pattern, CharSequence replacement)`
    `static String` | `replaceAll(CharSequence self, Pattern pattern, Closure closure)`
    `static String` | `replaceAll(String self, Pattern pattern, Closure closure)`
    `static String` | `replaceAll(String self, Pattern pattern, String replacement)`
    `static String` | `replaceAll(String self, String regex, Closure closure)`
    `static String` | `replaceFirst(CharSequence self, CharSequence regex, CharSequence replacement)`
    `static String` | `replaceFirst(CharSequence self, CharSequence regex, Closure closure)`
    `static CharSequence` | `replaceFirst(CharSequence self, Pattern pattern, CharSequence replacement)`
    `static String` | `replaceFirst(CharSequence self, Pattern pattern, Closure closure)`
    `static String` | `replaceFirst(String self, Pattern pattern, Closure closure)`
    `static String` | `replaceFirst(String self, Pattern pattern, String replacement)`
    `static String` | `replaceFirst(String self, String regex, Closure closure)`
    `static List<MetaMethod>` | `respondsTo(Object self, String name, Object[] argTypes)`
    `static List<MetaMethod>` | `respondsTo(Object self, String name)`
    `static boolean` | `retainAll(Collection self, Object[] items)` Modifies this collection so that it retains only its elements that are contained in the specified array.
    `static boolean` | `retainAll(Collection<T> self, Closure condition)` Modifies this collection so that it retains only its elements that are matched according to the specified closure condition.
    `static List<T>` | `reverse(List<T> self)` Creates a new List with the identical contents to this list but in reverse order.
    `static List<T>` | `reverse(List<T> self, boolean mutate)` Reverses the elements in a list.
    `static T[]` | `reverse(T[] self)` Creates a new array containing items which are the same as this array but in reverse order.
    `static T[]` | `reverse(T[] self, boolean mutate)` Reverse the items in an array.
    `static Iterator<T>` | `reverse(Iterator<T> self)` Reverses the iterator.
    `static CharSequence` | `reverse(CharSequence self)`
    `static String` | `reverse(String self)`
    `static Map<K, V>` | `reverseEach(Map<K, V> self, Closure closure)` Allows a Map to be iterated through in reverse order using a closure.
    `static List<T>` | `reverseEach(List<T> self, Closure closure)` Iterate over each element of the list in the reverse order.
    `static T[]` | `reverseEach(T[] self, Closure closure)` Iterate over each element of the array in the reverse order.
    `static Number` | `rightShift(Number self, Number operand)` Implementation of the right shift operator for integral types.
    `static Number` | `rightShiftUnsigned(Number self, Number operand)` Implementation of the right shift (unsigned) operator for integral types.
    `static int` | `round(Float number)` Round the value
    `static float` | `round(Float number, int precision)` Round the value
    `static long` | `round(Double number)` Round the value
    `static double` | `round(Double number, int precision)` Round the value
    `static TimerTask` | `runAfter(Timer timer, int delay, Closure closure)` Allows a simple syntax for using timers.
    `static void` | `setBytes(File file, byte[] bytes)`
    `static void` | `setBytes(OutputStream os, byte[] bytes)`
    `static void` | `setIndex(Matcher matcher, int idx)`
    `static void` | `setMetaClass(Class self, MetaClass metaClass)` Sets the metaclass for a given class.
    `static void` | `setMetaClass(Object self, MetaClass metaClass)` Set the metaclass for an object.
    `static void` | `setMetaClass(GroovyObject self, MetaClass metaClass)` Set the metaclass for a GroovyObject.
    `static void` | `setText(File file, String text)`
    `static void` | `setText(File file, String text, String charset)`
    `static int` | `size(Iterator self)` Provide the standard Groovy `size()` method for `Iterator`.
    `static int` | `size(Object[] self)` Provide the standard Groovy `size()` method for an array.
    `static int` | `size(boolean[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(byte[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(char[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(short[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(int[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(long[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(float[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(double[] array)` Allows arrays to behave similar to collections.
    `static int` | `size(CharSequence text)`
    `static long` | `size(Matcher self)`
    `static int` | `size(String text)`
    `static int` | `size(StringBuffer buffer)`
    `static long` | `size(File self)`
    `static List<T>` | `sort(Collection<T> self)` @deprecated Use the Iterable version of sort instead
    `static List<T>` | `sort(Iterable<T> self)` Sorts the Collection.
    `static List<T>` | `sort(Collection<T> self, boolean mutate)` @deprecated Use the Iterable version of sort instead
    `static List<T>` | `sort(Iterable<T> self, boolean mutate)` Sorts the Iterable.
    `static Map<K, V>` | `sort(Map<K, V> self, Closure closure)` Sorts the elements from the given map into a new ordered map using the closure as a comparator to determine the ordering.
    `static Map<K, V>` | `sort(Map<K, V> self, Comparator<K> comparator)` Sorts the elements from the given map into a new ordered Map using the specified key comparator to determine the ordering.
    `static Map<K, V>` | `sort(Map<K, V> self)` Sorts the elements from the given map into a new ordered Map using the natural ordering of the keys to determine the ordering.
    `static T[]` | `sort(T[] self)` Modifies this array so that its elements are in sorted order.
    `static T[]` | `sort(T[] self, boolean mutate)` Sorts the given array into sorted order.
    `static Iterator<T>` | `sort(Iterator<T> self)` Sorts the given iterator items into a sorted iterator.
    `static Iterator<T>` | `sort(Iterator<T> self, Comparator<T> comparator)` Sorts the given iterator items into a sorted iterator using the comparator.
    `static List<T>` | `sort(Collection<T> self, Comparator<T> comparator)` @deprecated Use the Iterable version of sort instead
    `static List<T>` | `sort(Collection<T> self, boolean mutate, Comparator<T> comparator)` @deprecated Use the Iterable version of sort instead
    `static List<T>` | `sort(Iterable<T> self, boolean mutate, Comparator<T> comparator)` Sorts the Iterable using the given Comparator.
    `static T[]` | `sort(T[] self, Comparator<T> comparator)` Sorts the given array into sorted order using the given comparator.
    `static T[]` | `sort(T[] self, boolean mutate, Comparator<T> comparator)` Modifies this array so that its elements are in sorted order as determined by the given comparator.
    `static Iterator<T>` | `sort(Iterator<T> self, Closure closure)` Sorts the given iterator items into a sorted iterator using the Closure to determine the correct ordering.
    `static T[]` | `sort(T[] self, Closure closure)` Sorts the elements from this array into a newly created array using the Closure to determine the correct ordering.
    `static T[]` | `sort(T[] self, boolean mutate, Closure closure)` Modifies this array so that its elements are in sorted order using the Closure to determine the correct ordering.
    `static List<T>` | `sort(Collection<T> self, Closure closure)` Sorts this Collection using the given Closure to determine the correct ordering.
    `static List<T>` | `sort(Iterable<T> self, Closure closure)` Sorts this Iterable using the given Closure to determine the correct ordering.
    `static List<T>` | `sort(Collection<T> self, boolean mutate, Closure closure)` @deprecated Use the Iterable version of sort instead
    `static List<T>` | `sort(Iterable<T> self, boolean mutate, Closure closure)` Sorts this Iterable using the given Closure to determine the correct ordering.
    `static SortedSet<T>` | `sort(SortedSet<T> self)` Avoids doing unnecessary work when sorting an already sorted set (i.e. an identity function for an already sorted set).
    `static SortedMap<K, V>` | `sort(SortedMap<K, V> self)` Avoids doing unnecessary work when sorting an already sorted map (i.e. an identity function for an already sorted map).
    `static Collection` | `split(Object self, Closure closure)` Splits all items into two lists based on the closure condition.
    `static Collection<Collection<T>>` | `split(Collection<T> self, Closure closure)` Splits all items into two collections based on the closure condition.
    `static CharSequence[]` | `split(CharSequence self)`
    `static String[]` | `split(GString self)`
    `static String[]` | `split(String self)`
    `static T` | `splitEachLine(CharSequence self, CharSequence regex, Closure<T> closure)`
    `static T` | `splitEachLine(CharSequence self, Pattern pattern, Closure<T> closure)`
    `static T` | `splitEachLine(String self, Pattern pattern, Closure<T> closure)`
    `static T` | `splitEachLine(String self, String regex, Closure<T> closure)`
    `static T` | `splitEachLine(File self, String regex, Closure<T> closure)`
    `static T` | `splitEachLine(File self, Pattern pattern, Closure<T> closure)`
    `static T` | `splitEachLine(File self, String regex, String charset, Closure<T> closure)`
    `static T` | `splitEachLine(File self, Pattern pattern, String charset, Closure<T> closure)`
    `static T` | `splitEachLine(URL self, String regex, Closure<T> closure)`
    `static T` | `splitEachLine(URL self, Pattern pattern, Closure<T> closure)`
    `static T` | `splitEachLine(URL self, String regex, String charset, Closure<T> closure)`
    `static T` | `splitEachLine(URL self, Pattern pattern, String charset, Closure<T> closure)`
    `static T` | `splitEachLine(Reader self, String regex, Closure<T> closure)`
    `static T` | `splitEachLine(Reader self, Pattern pattern, Closure<T> closure)`
    `static T` | `splitEachLine(InputStream stream, String regex, String charset, Closure<T> closure)`
    `static T` | `splitEachLine(InputStream stream, Pattern pattern, String charset, Closure<T> closure)`
    `static T` | `splitEachLine(InputStream stream, String regex, Closure<T> closure)`
    `static T` | `splitEachLine(InputStream stream, Pattern pattern, Closure<T> closure)`
    `static SpreadMap` | `spread(Map self)` Synonym for toSpreadMap(java.util.Map).
    `static String` | `sprintf(Object self, String format, Object[] values)` Sprintf to a string.
    `static String` | `sprintf(Object self, String format, Object arg)` Returns a formatted string using the specified format string and arguments.
    `static void` | `step(Number self, Number to, Number stepNumber, Closure closure)` Iterates from this number up to the given number using a step increment.
    `static CharSequence` | `stripIndent(CharSequence self)`
    `static CharSequence` | `stripIndent(CharSequence self, int numChars)`
    `static String` | `stripIndent(String self)`
    `static String` | `stripIndent(String self, int numChars)`
    `static CharSequence` | `stripMargin(CharSequence self)`
    `static CharSequence` | `stripMargin(CharSequence self, char marginChar)`
    `static String` | `stripMargin(CharSequence self, CharSequence marginChar)`
    `static String` | `stripMargin(String self)`
    `static String` | `stripMargin(String self, char marginChar)`
    `static String` | `stripMargin(String self, String marginChar)`
    `static Map<K, V>` | `subMap(Map<K, V> map, Collection<K> keys)` Creates a sub-Map containing the given keys.
    `static Map<K, V>` | `subMap(Map<K, V> map, K[] keys)` Creates a sub-Map containing the given keys.
    `static Set<List<T>>` | `subsequences(List<T> self)` Finds all non-null subsequences of a list.
    `static Object` | `sum(Collection self)` @deprecated Use the Iterable version of sum instead
    `static Object` | `sum(Iterable self)` Sums the items in an Iterable.
    `static Object` | `sum(Object[] self)` Sums the items in an array.
    `static Object` | `sum(Iterator<Object> self)` Sums the items from an Iterator.
    `static Object` | `sum(Collection self, Object initialValue)` @deprecated Use the Iterable version of sum instead
    `static Object` | `sum(Iterable self, Object initialValue)` Sums the items in an Iterable, adding the result to some initial value.
    `static Object` | `sum(Object[] self, Object initialValue)` Sums the items in an array, adding the result to some initial value.
    `static Object` | `sum(Iterator<Object> self, Object initialValue)` Sums the items from an Iterator, adding the result to some initial value.
    `static Object` | `sum(Collection self, Closure closure)` @deprecated Use the Iterable version of sum instead
    `static Object` | `sum(Iterable self, Closure closure)` Sums the result of apply a closure to each item of an Iterable.
    `static Object` | `sum(Object[] self, Closure closure)` Sums the result of apply a closure to each item of an array.
    `static Object` | `sum(Iterator<Object> self, Closure closure)` Sums the result of apply a closure to each item returned from an iterator.
    `static Object` | `sum(Collection self, Object initialValue, Closure closure)` @deprecated Use the Iterable version of sum instead
    `static Object` | `sum(Iterable self, Object initialValue, Closure closure)` Sums the result of applying a closure to each item of an Iterable to some initial value.
    `static Object` | `sum(Object[] self, Object initialValue, Closure closure)` Sums the result of applying a closure to each item of an array to some initial value.
    `static Object` | `sum(Iterator<Object> self, Object initialValue, Closure closure)` Sums the result of applying a closure to each item of an Iterator to some initial value.
    `static List<T>` | `tail(List<T> self)` Returns the items from the List excluding the first item.
    `static T[]` | `tail(T[] self)` Returns the items from the Object array excluding the first item.
    `static List<T>` | `take(List<T> self, int num)` Returns the first `num` elements from the head of this list.
    `static T[]` | `take(T[] self, int num)` Returns the first `num` elements from the head of this array.
    `static List<T>` | `take(Iterable<T> self, int num)` Returns the first `num` elements from the head of this Iterable.
    `static Map<K, V>` | `take(Map<K, V> self, int num)` Returns a new map containing the first `num` elements from the head of this map.
    `static Iterator<T>` | `take(Iterator<T> self, int num)` Returns an iterator of up to the first `num` elements from this iterator.
    `static CharSequence` | `take(CharSequence self, int num)`
    `static List<T>` | `takeWhile(List<T> self, Closure condition)` Returns the longest prefix of this list where each element passed to the given closure condition evaluates to true.
    `static List<T>` | `takeWhile(Iterable<T> self, Closure condition)` Returns a List containing the longest prefix of the elements from this Iterable where each element passed to the given closure evaluates to true.
    `static Map<K, V>` | `takeWhile(Map<K, V> self, Closure<?> condition)` Returns the longest prefix of this Map where each entry (or key/value pair) when passed to the given closure evaluates to true.
    `static T[]` | `takeWhile(T[] self, Closure condition)` Returns the longest prefix of this array where each element passed to the given closure evaluates to true.
    `static Iterator<T>` | `takeWhile(Iterator<T> self, Closure condition)` Returns the longest prefix of elements in this iterator where each element passed to the given condition closure evaluates to true.
    `static void` | `times(Number self, Closure closure)` Executes the closure this many times, starting from zero.
    `static String` | `toArrayString(Object[] self)` Returns the string representation of the given array.
    `static BigDecimal` | `toBigDecimal(Number self)` Transform a Number into a BigDecimal
    `static BigDecimal` | `toBigDecimal(CharSequence self)`
    `static BigDecimal` | `toBigDecimal(String self)`
    `static BigInteger` | `toBigInteger(Number self)` Transform this Number into a BigInteger.
    `static BigInteger` | `toBigInteger(CharSequence self)`
    `static BigInteger` | `toBigInteger(String self)`
    `static Boolean` | `toBoolean(Boolean self)` Identity conversion which returns Boolean.TRUE for a true Boolean and Boolean.FALSE for a false Boolean.
    `static Boolean` | `toBoolean(String self)`
    `static Character` | `toCharacter(String self)`
    `static Double` | `toDouble(Number self)` Transform a Number into a Double
    `static Double` | `toDouble(CharSequence self)`
    `static Double` | `toDouble(String self)`
    `static Float` | `toFloat(Number self)` Transform a Number into a Float
    `static Float` | `toFloat(CharSequence self)`
    `static Float` | `toFloat(String self)`
    `static Integer` | `toInteger(Number self)` Transform a Number into an Integer
    `static Integer` | `toInteger(CharSequence self)`
    `static Integer` | `toInteger(String self)`
    `static List<T>` | `toList(Collection<T> self)` Convert a Collection to a List.
    `static List<T>` | `toList(Iterator<T> self)` Convert an iterator to a List.
    `static List<T>` | `toList(Iterable<T> self)` Convert an Iterable to a List.
    `static List<T>` | `toList(Enumeration<T> self)` Convert an enumeration to a List.
    `static List<T>` | `toList(T[] array)` Allows conversion of arrays into a mutable List.
    `static List<Byte>` | `toList(byte[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<Boolean>` | `toList(boolean[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<Character>` | `toList(char[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<Short>` | `toList(short[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<Integer>` | `toList(int[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<Long>` | `toList(long[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<Float>` | `toList(float[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<Double>` | `toList(double[] array)` Converts this array to a List of the same size, with each element added to the list.
    `static List<CharSequence>` | `toList(CharSequence self)`
    `static List<String>` | `toList(String self)`
    `static String` | `toListString(Collection self)` Returns the string representation of the given list.
    `static String` | `toListString(Collection self, int maxSize)` Returns the string representation of the given list.
    `static Long` | `toLong(Number self)` Transform a Number into a Long
    `static Long` | `toLong(CharSequence self)`
    `static Long` | `toLong(String self)`
    `static char` | `toLowerCase(Character self)` Converts the character to lowercase.
    `static String` | `toMapString(Map self)` Returns the string representation of this map.
    `static String` | `toMapString(Map self, int maxSize)` Returns the string representation of this map.
    `static Set<Byte>` | `toSet(byte[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<Boolean>` | `toSet(boolean[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<Character>` | `toSet(char[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<Short>` | `toSet(short[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<Integer>` | `toSet(int[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<Long>` | `toSet(long[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<Float>` | `toSet(float[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<Double>` | `toSet(double[] array)` Converts this array to a Set, with each unique element added to the set.
    `static Set<T>` | `toSet(Collection<T> self)` Convert a Collection to a Set.
    `static Set<T>` | `toSet(Iterator<T> self)` Convert an iterator to a Set.
    `static Set<T>` | `toSet(Enumeration<T> self)` Convert an enumeration to a Set.
    `static Set<CharSequence>` | `toSet(CharSequence self)`
    `static Set<String>` | `toSet(String self)`
    `static Short` | `toShort(CharSequence self)`
    `static Short` | `toShort(String self)`
    `static SpreadMap` | `toSpreadMap(Map self)` Returns a new `SpreadMap` from this map.
    `static SpreadMap` | `toSpreadMap(Object[] self)` Creates a spreadable map from this array.
    `static SpreadMap` | `toSpreadMap(List self)` Creates a spreadable map from this list.
    `static String` | `toString(boolean[] self)` Returns the string representation of the given array.
    `static String` | `toString(byte[] self)` Returns the string representation of the given array.
    `static String` | `toString(char[] self)` Returns the string representation of the given array.
    `static String` | `toString(short[] self)` Returns the string representation of the given array.
    `static String` | `toString(int[] self)` Returns the string representation of the given array.
    `static String` | `toString(long[] self)` Returns the string representation of the given array.
    `static String` | `toString(float[] self)` Returns the string representation of the given array.
    `static String` | `toString(double[] self)` Returns the string representation of the given array.
    `static String` | `toString(AbstractMap self)` Returns the string representation of the given map.
    `static String` | `toString(AbstractCollection self)` Returns the string representation of the given collection.
    `static String` | `toString(Object[] self)` Returns the string representation of this array's contents.
    `static String` | `toString(Object value)` Create a String representation of this object.
    `static URI` | `toURI(CharSequence self)`
    `static URI` | `toURI(String self)`
    `static URL` | `toURL(CharSequence self)`
    `static URL` | `toURL(String self)`
    `static char` | `toUpperCase(Character self)` Converts the character to uppercase.
    `static List<CharSequence>` | `tokenize(CharSequence self)`
    `static List<CharSequence>` | `tokenize(CharSequence self, Character token)`
    `static List<CharSequence>` | `tokenize(CharSequence self, CharSequence token)`
    `static List<String>` | `tokenize(String self)`
    `static List<String>` | `tokenize(String self, Character token)`
    `static List<String>` | `tokenize(String self, String token)`
    `static CharSequence` | `tr(CharSequence self, CharSequence sourceSet, CharSequence replacementSet)`
    `static String` | `tr(String self, String sourceSet, String replacementSet)`
    `static void` | `transformChar(Reader self, Writer writer, Closure closure)`
    `static void` | `transformLine(Reader reader, Writer writer, Closure closure)`
    `static List` | `transpose(List self)` Adds GroovyCollections#transpose(List) as a method on lists.
    `static void` | `traverse(File self, Map<String, Object> options, Closure closure)`
    `static void` | `traverse(File self, Closure closure)`
    `static void` | `traverse(File self, Map<String, Object> options)`
    `static float` | `trunc(Float number, int precision)` Truncate the value
    `static float` | `trunc(Float number)` Truncate the value
    `static double` | `trunc(Double number)` Truncate the value
    `static double` | `trunc(Double number, int precision)` Truncate the value
    `static Number` | `unaryMinus(Number left)` Negates the number.
    `static Number` | `unaryPlus(Number left)` Returns the number, effectively being a noop for numbers.
    `static CharSequence` | `unexpand(CharSequence self)`
    `static CharSequence` | `unexpand(CharSequence self, int tabStop)`
    `static String` | `unexpand(String self)`
    `static String` | `unexpand(String self, int tabStop)`
    `static CharSequence` | `unexpandLine(CharSequence self, int tabStop)`
    `static String` | `unexpandLine(String self, int tabStop)`
    `static Iterator<T>` | `unique(Iterator<T> self)` Returns an iterator equivalent to this iterator all duplicated items removed by using the default comparator.
    `static Collection<T>` | `unique(Collection<T> self)` Modifies this collection to remove all duplicated items, using the default comparator.
    `static Collection<T>` | `unique(Collection<T> self, boolean mutate)` Remove all duplicates from a given Collection using the default comparator.
    `static Iterator<T>` | `unique(Iterator<T> self, Closure closure)` Returns an iterator equivalent to this iterator but with all duplicated items removed by using a Closure to determine duplicate (equal) items.
    `static Collection<T>` | `unique(Collection<T> self, Closure closure)` A convenience method for making a collection unique using a Closure to determine duplicate (equal) items.
    `static Collection<T>` | `unique(Collection<T> self, boolean mutate, Closure closure)` A convenience method for making a collection unique using a Closure to determine duplicate (equal) items.
    `static Iterator<T>` | `unique(Iterator<T> self, Comparator<T> comparator)` Returns an iterator equivalent to this iterator with all duplicated items removed by using the supplied comparator.
    `static Collection<T>` | `unique(Collection<T> self, Comparator<T> comparator)` Remove all duplicates from a given Collection.
    `static Collection<T>` | `unique(Collection<T> self, boolean mutate, Comparator<T> comparator)` Remove all duplicates from a given Collection.
    `static void` | `upto(Number self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(long self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(Long self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(float self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(Float self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(double self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(Double self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(BigInteger self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static void` | `upto(BigDecimal self, Number to, Closure closure)` Iterates from this number up to the given number, inclusive, incrementing by one each time.
    `static T` | `use(Object self, Class categoryClass, Closure<T> closure)` Scoped use method
    `static T` | `use(Object self, List<Class> categoryClassList, Closure<T> closure)` Scoped use method with list of categories.
    `static Object` | `use(Object self, Object[] array)` Allows you to use a list of categories, specifying the list as varargs.
    `static T` | `with(U self, Closure<T> closure)` Allows the closure to be called for the object reference self.
    `static T` | `withDataInputStream(File file, Closure<T> closure)`
    `static T` | `withDataOutputStream(File file, Closure<T> closure)`
    `static Map<K, V>` | `withDefault(Map<K, V> self, Closure init)` Wraps a map using the decorator pattern with a wrapper that intercepts all calls to `get(key)`.
    `static List<T>` | `withDefault(List<T> self, Closure init)` An alias for `withLazyDefault` which decorates a list allowing it to grow when called with index values outside the normal list bounds.
    `static List<T>` | `withEagerDefault(List<T> self, Closure init)` Decorates a list allowing it to grow when called with a non-existent index value.
    `static Object` | `withInputStream(File file, Closure closure)`
    `static T` | `withInputStream(URL url, Closure<T> closure)`
    `static List<T>` | `withLazyDefault(List<T> self, Closure init)` Decorates a list allowing it to grow when called with a non-existent index value.
    `static T` | `withObjectInputStream(File file, Closure<T> closure)`
    `static T` | `withObjectInputStream(File file, ClassLoader classLoader, Closure<T> closure)`
    `static T` | `withObjectInputStream(InputStream inputStream, Closure<T> closure)`
    `static T` | `withObjectInputStream(InputStream inputStream, ClassLoader classLoader, Closure<T> closure)`
    `static T` | `withObjectOutputStream(File file, Closure<T> closure)`
    `static T` | `withObjectOutputStream(OutputStream outputStream, Closure<T> closure)`
    `static T` | `withObjectStreams(Socket socket, Closure<T> closure)`
    `static Object` | `withOutputStream(File file, Closure closure)`
    `static T` | `withPrintWriter(File file, Closure<T> closure)`
    `static T` | `withPrintWriter(File file, String charset, Closure<T> closure)`
    `static T` | `withPrintWriter(Writer writer, Closure<T> closure)`
    `static T` | `withReader(File file, Closure<T> closure)`
    `static T` | `withReader(File file, String charset, Closure<T> closure)`
    `static T` | `withReader(Reader reader, Closure<T> closure)`
    `static T` | `withReader(URL url, Closure<T> closure)`
    `static T` | `withReader(URL url, String charset, Closure<T> closure)`
    `static T` | `withReader(InputStream in, Closure<T> closure)`
    `static T` | `withReader(InputStream in, String charset, Closure<T> closure)`
    `static T` | `withStream(InputStream stream, Closure<T> closure)`
    `static T` | `withStream(OutputStream os, Closure<T> closure)`
    `static T` | `withStreams(Socket socket, Closure<T> closure)`
    `static Object` | `withTraits(Object self, Class<?>... traits)` Dynamically wraps an instance into something which implements the supplied trait classes.
    `static T` | `withWriter(File file, Closure<T> closure)`
    `static T` | `withWriter(File file, String charset, Closure<T> closure)`
    `static T` | `withWriter(Writer writer, Closure<T> closure)`
    `static T` | `withWriter(OutputStream stream, Closure<T> closure)`
    `static T` | `withWriter(OutputStream stream, String charset, Closure<T> closure)`
    `static T` | `withWriterAppend(File file, String charset, Closure<T> closure)`
    `static T` | `withWriterAppend(File file, Closure<T> closure)`
    `static void` | `write(Writer self, Writable writable)`
    `static void` | `write(File file, String text)`
    `static void` | `write(File file, String text, String charset)`
    `static void` | `writeLine(BufferedWriter writer, String line)`
    `static BitSet` | `xor(BitSet left, BitSet right)` Bitwise XOR together two BitSets.
    `static Number` | `xor(Number left, Number right)` Bitwise XOR together two Numbers.
    `static Boolean` | `xor(Boolean left, Boolean right)` Exclusive disjunction of two boolean operators

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class DefaultGroovyMethodsSupport` | `cloneSimilarCollection, cloneSimilarMap, closeQuietly, closeWithWarning, createSimilarArray, createSimilarCollection, createSimilarCollection, createSimilarList, createSimilarMap, createSimilarOrDefaultCollection, createSimilarSet, normaliseIndex, sameType, subListBorders, subListBorders`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### public static final Class[] DGM_LIKE_CLASSES

    - #### public static final Class[] additionals

  - ### Method Detail

    - #### public static int abs(Number number)

      Get the absolute value

      Parameters:
        `number` - a Number
      Returns:
        the absolute value of that Number
      Since:
        1.0

    - #### public static long abs(Long number)

      Get the absolute value

      Parameters:
        `number` - a Long
      Returns:
        the absolute value of that Long
      Since:
        1.0

    - #### public static float abs(Float number)

      Get the absolute value

      Parameters:
        `number` - a Float
      Returns:
        the absolute value of that Float
      Since:
        1.0

    - #### public static double abs(Double number)

      Get the absolute value

      Parameters:
        `number` - a Double
      Returns:
        the absolute value of that Double
      Since:
        1.0

    - #### @Deprecated public static Socket accept(ServerSocket serverSocket, Closure closure)

    - #### @Deprecated public static Socket accept(ServerSocket serverSocket, boolean runInANewThread, Closure closure)

    - #### public static boolean addAll(Collection<T> self, T[] items)

      Modifies the collection by adding all of the elements in the specified array to the collection. The behavior of this operation is undefined if the specified array is modified while the operation is in progress. See also `plus` or the '+' operator if wanting to produce a new collection containing additional items but while leaving the original collection unchanged.

      Parameters:
        `self` - a Collection to be modified
        `items` - array containing elements to be added to this collection
      Returns:
        `true` if this collection changed as a result of the call
      See Also:
        Collection.addAll
      Since:
        1.7.2

    - #### public static boolean addAll(List<T> self, int index, T[] items)

      Modifies this list by inserting all of the elements in the specified array into the list at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they occur in the array. The behavior of this operation is undefined if the specified array is modified while the operation is in progress. See also `plus` for similar functionality with copy semantics, i.e. which produces a new list after adding the additional items at the specified position but leaves the original list unchanged.

      Parameters:
        `self` - a list to be modified
        `items` - array containing elements to be added to this collection
        `index` - index at which to insert the first element from the specified array
      Returns:
        `true` if this collection changed as a result of the call
      See Also:
        List.addAll
      Since:
        1.7.2

    - #### public static void addShutdownHook(Object self, Closure closure)

      Allows the usage of addShutdownHook without getting the runtime first.

      Parameters:
        `self` - the object the method is called on (ignored)
        `closure` - the shutdown hook action
      Since:
        1.5.0

    - #### public static Number and(Number left, Number right)

      Bitwise AND together two Numbers.

      Parameters:
        `left` - a Number
        `right` - another Number to bitwise AND
      Returns:
        the bitwise AND of both Numbers
      Since:
        1.0

    - #### public static BitSet and(BitSet left, BitSet right)

      Bitwise AND together two BitSets.

      Parameters:
        `left` - a BitSet
        `right` - another BitSet to bitwise AND
      Returns:
        the bitwise AND of both BitSets
      Since:
        1.5.0

    - #### public static Boolean and(Boolean left, Boolean right)

      Logical conjunction of two boolean operators.

      Parameters:
        `left` - left operator
        `right` - right operator
      Returns:
        result of logical conjunction
      Since:
        1.0

    - #### public static boolean any(Object self, Closure closure)

      Iterates over the contents of an object or collection, and checks whether a predicate is valid for at least one element.

      Parameters:
        `self` - the object over which we iterate
        `closure` - the closure predicate used for matching
      Returns:
        true if any iteration for the object matches the closure predicate
      Since:
        1.0

    - #### public static boolean any(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Iterates over the contents of an iterator, and checks whether a predicate is valid for at least one element.

      Parameters:
        `self` - the iterator over which we iterate
        `closure` - the closure predicate used for matching
      Returns:
        true if any iteration for the object matches the closure predicate
      Since:
        1.0

    - #### public static boolean any(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Iterates over the contents of an iterable, and checks whether a predicate is valid for at least one element.

      Parameters:
        `self` - the iterable over which we iterate
        `closure` - the closure predicate used for matching
      Returns:
        true if any iteration for the object matches the closure predicate
      Since:
        1.0

    - #### public static boolean any(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<?> closure)

      Iterates over the entries of a map, and checks whether a predicate is valid for at least one entry. If the closure takes one parameter then it will be passed the Map.Entry otherwise if the closure takes two parameters then it will be passed the key and the value.

           assert [2:3, 4:5, 5:10].any { key, value -> key * 2 == value }
           assert ![2:3, 4:5, 5:10].any { entry -> entry.key == entry.value * 2 }

      Parameters:
        `self` - the map over which we iterate
        `closure` - the 1 or 2 arg closure predicate used for matching
      Returns:
        true if any entry in the map matches the closure predicate
      Since:
        1.5.0

    - #### public static boolean any(Object self)

      Iterates over the elements of a collection, and checks whether at least one element is true according to the Groovy Truth. Equivalent to self.any({element -> element})

      Parameters:
        `self` - the object over which we iterate
      Returns:
        true if any item in the collection matches the closure predicate
      Since:
        1.5.0

    - #### @Deprecated public static void append(File file, Object text)

    - #### @Deprecated public static void append(File file, byte[] bytes)

    - #### @Deprecated public static void append(File self, InputStream stream)

    - #### @Deprecated public static void append(File file, Object text, String charset)

    - #### public static boolean asBoolean(Object object)

      Coerce an object instance to a boolean value. An object is coerced to true if it's not null, to false if it is null.

      Parameters:
        `object` - the object to coerce
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(Boolean bool)

      Coerce an Boolean instance to a boolean value.

      Parameters:
        `bool` - the Boolean
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(Collection collection)

      Coerce a collection instance to a boolean value. A collection is coerced to false if it's empty, and to true otherwise.

          assert [1,2].asBoolean() == true

          assert [].asBoolean() == false

      Parameters:
        `collection` - the collection
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(Map map)

      Coerce a map instance to a boolean value. A map is coerced to false if it's empty, and to true otherwise.

          assert [:] as Boolean == false
           assert [a:2] as Boolean == true

      Parameters:
        `map` - the map
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(Iterator iterator)

      Coerce an iterator instance to a boolean value. An iterator is coerced to false if there are no more elements to iterate over, and to true otherwise.

      Parameters:
        `iterator` - the iterator
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(Enumeration enumeration)

      Coerce an enumeration instance to a boolean value. An enumeration is coerced to false if there are no more elements to enumerate, and to true otherwise.

      Parameters:
        `enumeration` - the enumeration
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(Object[] array)

      Coerce an Object array to a boolean value. An Object array is false if the array is of length 0. and to true otherwise

      Parameters:
        `array` - the array
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(byte[] array)

      Coerces a byte array to a boolean value. A byte array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(short[] array)

      Coerces a short array to a boolean value. A short array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(int[] array)

      Coerces an int array to a boolean value. An int array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(long[] array)

      Coerces a long array to a boolean value. A long array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(float[] array)

      Coerces a float array to a boolean value. A float array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(double[] array)

      Coerces a double array to a boolean value. A double array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(boolean[] array)

      Coerces a boolean array to a boolean value. A boolean array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(char[] array)

      Coerces a char array to a boolean value. A char array is false if the array is of length 0, and true otherwise.

      Parameters:
        `array` - an array
      Returns:
        the array's boolean value
      Since:
        1.7.4

    - #### public static boolean asBoolean(Character character)

      Coerce a character to a boolean value. A character is coerced to false if it's character value is equal to 0, and to true otherwise.

      Parameters:
        `character` - the character
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### public static boolean asBoolean(Number number)

      Coerce a number to a boolean value. A number is coerced to false if its double value is equal to 0, and to true otherwise, and to true otherwise.

      Parameters:
        `number` - the number
      Returns:
        the boolean value
      Since:
        1.7.0

    - #### @Deprecated public static boolean asBoolean(CharSequence string)

    - #### @Deprecated public static boolean asBoolean(Matcher matcher)

    - #### public static Map<K, V> asImmutable(Map<? extends K, ? extends V> self)

      A convenience method for creating an immutable map.

      Parameters:
        `self` - a Map
      Returns:
        an immutable Map
      See Also:
        Collections.unmodifiableMap
      Since:
        1.0

    - #### public static SortedMap<K, V> asImmutable(SortedMap<K, ? extends V> self)

      A convenience method for creating an immutable sorted map.

      Parameters:
        `self` - a SortedMap
      Returns:
        an immutable SortedMap
      See Also:
        Collections.unmodifiableSortedMap
      Since:
        1.0

    - #### public static List<T> asImmutable(List<? extends T> self)

      A convenience method for creating an immutable list

      Parameters:
        `self` - a List
      Returns:
        an immutable List
      See Also:
        Collections.unmodifiableList
      Since:
        1.0

    - #### public static Set<T> asImmutable(Set<? extends T> self)

      A convenience method for creating an immutable list.

      Parameters:
        `self` - a Set
      Returns:
        an immutable Set
      See Also:
        Collections.unmodifiableSet
      Since:
        1.0

    - #### public static SortedSet<T> asImmutable(SortedSet<T> self)

      A convenience method for creating an immutable sorted set.

      Parameters:
        `self` - a SortedSet
      Returns:
        an immutable SortedSet
      See Also:
        Collections.unmodifiableSortedSet
      Since:
        1.0

    - #### public static Collection<T> asImmutable(Collection<? extends T> self)

      A convenience method for creating an immutable Collection.

          def mutable = [1,2,3]
           def immutable = mutable.asImmutable()
           mutable << 4
           try {
             immutable << 4
             assert false
           } catch (UnsupportedOperationException) {
             assert true
           }

      Parameters:
        `self` - a Collection
      Returns:
        an immutable Collection
      See Also:
        Collections.unmodifiableCollection
      Since:
        1.5.0

    - #### @Deprecated public static List<T> asList(Collection<T> self)

      deprecated:
        Use the Iterable version of asList instead
      See Also:
        asList(Iterable)
      Since:
        1.0

    - #### public static List<T> asList(Iterable<T> self)

      Converts this Iterable to a List. Returns the original Iterable if it is already a List.

      Example usage:

           assert new HashSet().asList() instanceof List

      Parameters:
        `self` - an Iterable to be converted into a List
      Returns:
        a newly created List if this Iterable is not already a List
      Since:
        2.2.0

    - #### public static Map<K, V> asSynchronized(Map<K, V> self)

      A convenience method for creating a synchronized Map.

      Parameters:
        `self` - a Map
      Returns:
        a synchronized Map
      See Also:
        Collections.synchronizedMap
      Since:
        1.0

    - #### public static SortedMap<K, V> asSynchronized(SortedMap<K, V> self)

      A convenience method for creating a synchronized SortedMap.

      Parameters:
        `self` - a SortedMap
      Returns:
        a synchronized SortedMap
      See Also:
        Collections.synchronizedSortedMap
      Since:
        1.0

    - #### public static Collection<T> asSynchronized(Collection<T> self)

      A convenience method for creating a synchronized Collection.

      Parameters:
        `self` - a Collection
      Returns:
        a synchronized Collection
      See Also:
        Collections.synchronizedCollection
      Since:
        1.0

    - #### public static List<T> asSynchronized(List<T> self)

      A convenience method for creating a synchronized List.

      Parameters:
        `self` - a List
      Returns:
        a synchronized List
      See Also:
        Collections.synchronizedList
      Since:
        1.0

    - #### public static Set<T> asSynchronized(Set<T> self)

      A convenience method for creating a synchronized Set.

      Parameters:
        `self` - a Set
      Returns:
        a synchronized Set
      See Also:
        Collections.synchronizedSet
      Since:
        1.0

    - #### public static SortedSet<T> asSynchronized(SortedSet<T> self)

      A convenience method for creating a synchronized SortedSet.

      Parameters:
        `self` - a SortedSet
      Returns:
        a synchronized SortedSet
      See Also:
        Collections.synchronizedSortedSet
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static T asType(Collection col, Class<T> clazz)

      Converts the given collection to another type. A default concrete type is used for List, Set, or SortedSet. If the given type has a constructor taking a collection, that is used. Otherwise, the call is deferred to {link #asType(Object,Class)}. If this collection is already of the given type, the same instance is returned.

      Parameters:
        `col` - a collection
        `clazz` - the desired class
      Returns:
        the object resulting from this type conversion
      See Also:
        asType(java.lang.Object, java.lang.Class)
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static T asType(Object[] ary, Class<T> clazz)

      Converts the given array to either a List, Set, or SortedSet. If the given class is something else, the call is deferred to {link #asType(Object,Class)}.

      Parameters:
        `ary` - an array
        `clazz` - the desired class
      Returns:
        the object resulting from this type conversion
      See Also:
        asType(java.lang.Object, java.lang.Class)
      Since:
        1.5.1

    - #### @SuppressWarnings("unchecked") public static T asType(Closure cl, Class<T> clazz)

      Coerces the closure to an implementation of the given class. The class is assumed to be an interface or class with a single method definition. The closure is used as the implementation of that single method.

      Parameters:
        `cl` - the implementation of the single method
        `clazz` - the target type
      Returns:
        a Proxy of the given type which wraps this closure.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static T asType(Map map, Class<T> clazz)

      Coerces this map to the given type, using the map's keys as the public method names, and values as the implementation. Typically the value would be a closure which behaves like the method implementation.

      Parameters:
        `map` - this map
        `clazz` - the target type
      Returns:
        a Proxy of the given type, which defers calls to this map's elements.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static T asType(Number self, Class<T> c)

      Transform this number to a the given type, using the 'as' operator. The following types are supported in addition to the default asType(java.lang.Object, java.lang.Class):

      - BigDecimal
      - BigInteger
      - Double
      - Float
      Parameters:
        `self` - this number
        `c` - the desired type of the transformed result
      Returns:
        an instance of the given type
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static T asType(Object obj, Class<T> type)

      Converts a given object to a type. This method is used through the "as" operator and is overloadable as any other operator.

      Parameters:
        `obj` - the object to convert
        `type` - the goal type
      Returns:
        the resulting object
      Since:
        1.0

    - #### @Deprecated public static T asType(CharSequence self, Class<T> c)

    - #### @Deprecated @SuppressWarnings("unchecked") public static T asType(GString self, Class<T> c)

    - #### @Deprecated @SuppressWarnings("unchecked") public static T asType(String self, Class<T> c)

    - #### @Deprecated public static T asType(File f, Class<T> c)

    - #### @Deprecated public static File asWritable(File file)

    - #### @Deprecated public static File asWritable(File file, String encoding)

    - #### public static BitSet bitwiseNegate(BitSet self)

      Bitwise NEGATE a BitSet.

      Parameters:
        `self` - a BitSet
      Returns:
        the bitwise NEGATE of the BitSet
      Since:
        1.5.0

    - #### public static Number bitwiseNegate(Number left)

      Bitwise NEGATE a Number.

      Parameters:
        `left` - a Number
      Returns:
        the bitwise NEGATE of the Number
      Since:
        2.2.0

    - #### @Deprecated public static Pattern bitwiseNegate(CharSequence self)

    - #### @Deprecated public static Pattern bitwiseNegate(String self)

    - #### protected static T callClosureForLine(Closure<T> closure, String line, int counter)

    - #### protected static T callClosureForMapEntry(Closure<T> closure, Map.Entry entry)

    - #### protected static T callClosureForMapEntryAndCounter(Closure<T> closure, Map.Entry entry, int counter)

    - #### @Deprecated public static CharSequence capitalize(CharSequence self)

    - #### @Deprecated public static String capitalize(String self)

    - #### @Deprecated public static CharSequence center(CharSequence self, Number numberOfChars)

    - #### @Deprecated public static CharSequence center(CharSequence self, Number numberOfChars, CharSequence padding)

    - #### @Deprecated public static String center(String self, Number numberOfChars)

    - #### @Deprecated public static String center(String self, Number numberOfChars, String padding)

    - #### public static List<List<T>> collate(List<T> self, int size)

      Collates this list into sub-lists of length `size`. Example:

          def list = [ 1, 2, 3, 4, 5, 6, 7 ]
           def coll = list.collate( 3 )
           assert coll == [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7 ] ]

      Parameters:
        `self` - a List
        `size` - the length of each sub-list in the returned list
      Returns:
        a List containing the data collated into sub-lists
      Since:
        1.8.6

    - #### public static List<List<T>> collate(List<T> self, int size, int step)

      Collates this list into sub-lists of length `size` stepping through the code `step` elements for each subList. Example:

          def list = [ 1, 2, 3, 4 ]
           def coll = list.collate( 3, 1 )
           assert coll == [ [ 1, 2, 3 ], [ 2, 3, 4 ], [ 3, 4 ], [ 4 ] ]

      Parameters:
        `self` - a List
        `size` - the length of each sub-list in the returned list
        `step` - the number of elements to step through for each sub-list
      Returns:
        a List containing the data collated into sub-lists
      Since:
        1.8.6

    - #### public static List<List<T>> collate(List<T> self, int size, boolean keepRemainder)

      Collates this list into sub-lists of length `size`. Any remaining elements in the list after the subdivision will be dropped if `keepRemainder` is false. Example:

          def list = [ 1, 2, 3, 4, 5, 6, 7 ]
           def coll = list.collate( 3, false )
           assert coll == [ [ 1, 2, 3 ], [ 4, 5, 6 ] ]

      Parameters:
        `self` - a List
        `size` - the length of each sub-list in the returned list
        `keepRemainder` - if true, any rmeaining elements are returned as sub-lists. Otherwise they are discarded
      Returns:
        a List containing the data collated into sub-lists
      Since:
        1.8.6

    - #### public static List<List<T>> collate(List<T> self, int size, int step, boolean keepRemainder)

      Collates this list into sub-lists of length `size` stepping through the code `step` elements for each sub-list. Any remaining elements in the list after the subdivision will be dropped if `keepRemainder` is false. Example:

          def list = [ 1, 2, 3, 4 ]
           assert list.collate( 3, 1, true  ) == [ [ 1, 2, 3 ], [ 2, 3, 4 ], [ 3, 4 ], [ 4 ] ]
           assert list.collate( 3, 1, false ) == [ [ 1, 2, 3 ], [ 2, 3, 4 ] ]

      Parameters:
        `self` - a List
        `size` - the length of each sub-list in the returned list
        `step` - the number of elements to step through for each sub-list
        `keepRemainder` - if true, any rmeaining elements are returned as sub-lists. Otherwise they are discarded
      Returns:
        a List containing the data collated into sub-lists
      Since:
        1.8.6

    - #### public static List<T> collect(Object self, Closure<T> transform)

      Iterates through this aggregate Object transforming each item into a new value using the `transform` closure, returning a list of transformed values. Example:

          def list = [1, 'a', 1.23, true ]
           def types = list.collect { it.class }
           assert types == [Integer, String, BigDecimal, Boolean]

      Parameters:
        `self` - an aggregate Object with an Iterator returning its items
        `transform` - the closure used to transform each item of the aggregate object
      Returns:
        a List of the transformed values
      Since:
        1.0

    - #### public static Collection collect(Object self)

      Iterates through this aggregate Object transforming each item into a new value using Closure.IDENTITY as a transformer, basically returning a list of items copied from the original object.

          assert [1,2,3] == [1,2,3].iterator().collect()

      Parameters:
        `self` - an aggregate Object with an Iterator returning its items
      Returns:
        a List of the transformed values
      See Also:
        Closure.IDENTITY
      Since:
        1.8.5

    - #### public static Collection<T> collect(Object self, Collection<T> collector, Closure<? extends T> transform)

      Iterates through this aggregate Object transforming each item into a new value using the `transform` closure and adding it to the supplied `collector`.

      Parameters:
        `self` - an aggregate Object with an Iterator returning its items
        `collector` - the Collection to which the transformed values are added
        `transform` - the closure used to transform each item of the aggregate object
      Returns:
        the collector with all transformed values added to it
      Since:
        1.0

    - #### public static List<T> collect(Collection<S> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<T> transform)

      Iterates through this collection transforming each entry into a new value using the `transform` closure returning a list of transformed values.

          assert [2,4,6] == [1,2,3].collect { it * 2 }

      Parameters:
        `self` - a collection
        `transform` - the closure used to transform each item of the collection
      Returns:
        a List of the transformed values
      Since:
        1.0

    - #### public static List<T> collect(Collection<T> self)

      Iterates through this collection transforming each entry into a new value using Closure.IDENTITY as a transformer, basically returning a list of items copied from the original collection.

          assert [1,2,3] == [1,2,3].collect()

      Parameters:
        `self` - a collection
      Returns:
        a List of the transformed values
      See Also:
        Closure.IDENTITY
      Since:
        1.8.5

    - #### public static Collection<T> collect(Collection<E> self, Collection<T> collector, @ClosureParams(FirstParam.FirstGenericType.class) Closure<? extends T> transform)

      Iterates through this collection transforming each value into a new value using the `transform` closure and adding it to the supplied `collector`.

          assert [1,2,3] as HashSet == [2,4,5,6].collect(new HashSet()) { (int)(it / 2) }

      Parameters:
        `self` - a collection
        `collector` - the Collection to which the transformed values are added
        `transform` - the closure used to transform each item of the collection
      Returns:
        the collector with all transformed values added to it
      Since:
        1.0

    - #### public static Collection<T> collect(Map<K, V> self, Collection<T> collector, @ClosureParams(MapEntryOrKeyValue.class) Closure<? extends T> transform)

      Iterates through this Map transforming each map entry into a new value using the `transform` closure returning the `collector` with all transformed values added to it.

          assert [a:1, b:2].collect( [] as HashSet ) { key, value -> key*value } == ["a", "bb"] as Set
           assert [3:20, 2:30].collect( [] as HashSet ) { entry -> entry.key * entry.value } == [60] as Set

      Parameters:
        `self` - a Map
        `collector` - the Collection to which transformed values are added
        `transform` - the transformation closure which can take one (Map.Entry) or two (key, value) parameters
      Returns:
        the collector with all transformed values added to it
      Since:
        1.0

    - #### public static List<T> collect(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<T> transform)

      Iterates through this Map transforming each map entry into a new value using the `transform` closure returning a list of transformed values.

          assert [a:1, b:2].collect { key, value -> key*value } == ["a", "bb"]
           assert [3:20, 2:30].collect { entry -> entry.key * entry.value } == [60, 60]

      Parameters:
        `self` - a Map
        `transform` - the transformation closure which can take one (Map.Entry) or two (key, value) parameters
      Returns:
        the resultant list of transformed values
      Since:
        1.0

    - #### public static List collectAll(Collection self, Closure transform)

      Deprecated alias for collectNested

      deprecated:
        Use collectNested instead
      See Also:
        collectNested(Collection, Closure)

    - #### public static Collection collectAll(Collection self, Collection collector, Closure transform)

      Deprecated alias for collectNested

      deprecated:
        Use collectNested instead
      See Also:
        collectNested(Iterable, Collection, Closure)

    - #### public static Map<K, V> collectEntries(Map<S, T> self, Map<K, V> collector, @ClosureParams(MapEntryOrKeyValue.class) Closure<?> transform)

      Iterates through this Map transforming each map entry using the `transform` closure returning a map of the transformed entries.

           assert [a:1, b:2].collectEntries( [:] ) { k, v -> [v, k] } == [1:'a', 2:'b']
           assert [a:1, b:2].collectEntries( [30:'C'] ) { key, value ->
               [(value*10): key.toUpperCase()] } == [10:'A', 20:'B', 30:'C']

      Note: When using the list-style of result, the behavior is '`def (key, value) = listResultFromClosure`'. While we strongly discourage using a list of size other than 2, Groovy's normal semantics apply in this case; throwing away elements after the second one and using null for the key or value for the case of a shortened list. If your collector Map doesn't support null keys or values, you might get a runtime error, e.g. NullPointerException or IllegalArgumentException.
      Parameters:
        `self` - a Map
        `collector` - the Map into which the transformed entries are put
        `transform` - the closure used for transforming, which can take one (Map.Entry) or two (key, value) parameters and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        the collector with all transformed values added to it
      See Also:
        collect(Map, Collection, Closure)
      Since:
        1.7.9

    - #### public static Map<?, ?> collectEntries(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<?> transform)

      Iterates through this Map transforming each entry using the `transform` closure and returning a map of the transformed entries.

           assert [a:1, b:2].collectEntries { key, value -> [value, key] } == [1:'a', 2:'b']
           assert [a:1, b:2].collectEntries { key, value ->
               [(value*10): key.toUpperCase()] } == [10:'A', 20:'B']

      Note: When using the list-style of result, the behavior is '`def (key, value) = listResultFromClosure`'. While we strongly discourage using a list of size other than 2, Groovy's normal semantics apply in this case; throwing away elements after the second one and using null for the key or value for the case of a shortened list. If your Map doesn't support null keys or values, you might get a runtime error, e.g. NullPointerException or IllegalArgumentException.
      Parameters:
        `self` - a Map
        `transform` - the closure used for transforming, which can take one (Map.Entry) or two (key, value) parameters and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        a Map of the transformed entries
      See Also:
        collect(Map, Collection, Closure)
      Since:
        1.7.9

    - #### @Deprecated public static Map<K, V> collectEntries(Collection<?> self, Closure<?> transform)

      deprecated:
        Use the Iterable version of collectEntries instead
      See Also:
        collectEntries(Iterable, Closure)
      Since:
        1.7.9

    - #### public static Map<K, V> collectEntries(Iterator<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> transform)

      A variant of collectEntries for Iterators.

      Parameters:
        `self` - an Iterator
        `transform` - the closure used for transforming, which has an item from self as the parameter and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        a Map of the transformed entries
      See Also:
        collectEntries(Iterable, Closure)
      Since:
        1.8.7

    - #### public static Map<K, V> collectEntries(Iterable<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> transform)

      Iterates through this Iterable transforming each item using the `transform` closure and returning a map of the resulting transformed entries.

           def letters = "abc"
           // collect letters with index using list style
           assert (0..2).collectEntries { index -> [index, letters[index]] } == [0:'a', 1:'b', 2:'c']
           // collect letters with index using map style
           assert (0..2).collectEntries { index -> [(index): letters[index]] } == [0:'a', 1:'b', 2:'c']

      Note: When using the list-style of result, the behavior is '`def (key, value) = listResultFromClosure`'. While we strongly discourage using a list of size other than 2, Groovy's normal semantics apply in this case; throwing away elements after the second one and using null for the key or value for the case of a shortened list.
      Parameters:
        `self` - an Iterable
        `transform` - the closure used for transforming, which has an item from self as the parameter and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        a Map of the transformed entries
      See Also:
        collectEntries(Iterator, Closure)
      Since:
        1.8.7

    - #### @Deprecated public static Map<K, V> collectEntries(Collection<?> self)

      deprecated:
        Use the Iterable version of collectEntries instead
      See Also:
        collectEntries(Iterable)
      Since:
        1.8.5

    - #### public static Map<K, V> collectEntries(Iterator<?> self)

      A variant of collectEntries for Iterators using the identity closure as the transform.

      Parameters:
        `self` - an Iterator
      Returns:
        a Map of the transformed entries
      See Also:
        collectEntries(Iterable)
      Since:
        1.8.7

    - #### public static Map<K, V> collectEntries(Iterable<?> self)

      A variant of collectEntries for Iterable objects using the identity closure as the transform. The source Iterable should contain a list of `[key, value]` tuples or `Map.Entry` objects.

           def nums = [1, 10, 100, 1000]
           def tuples = nums.collect{ [it, it.toString().size()] }
           assert tuples == [[1, 1], [10, 2], [100, 3], [1000, 4]]
           def map = tuples.collectEntries()
           assert map == [1:1, 10:2, 100:3, 1000:4]

      Parameters:
        `self` - an Iterable
      Returns:
        a Map of the transformed entries
      See Also:
        collectEntries(Iterator)
      Since:
        1.8.7

    - #### @Deprecated public static Map<K, V> collectEntries(Collection<?> self, Map<K, V> collector, Closure<?> transform)

      deprecated:
        Use the Iterable version of collectEntries instead
      See Also:
        collectEntries(Iterable, Map, Closure)
      Since:
        1.7.9

    - #### public static Map<K, V> collectEntries(Iterator<E> self, Map<K, V> collector, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> transform)

      A variant of collectEntries for Iterators using a supplied map as the destination of transformed entries.

      Parameters:
        `self` - an Iterator
        `collector` - the Map into which the transformed entries are put
        `transform` - the closure used for transforming, which has an item from self as the parameter and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        the collector with all transformed values added to it
      Since:
        1.8.7

    - #### public static Map<K, V> collectEntries(Iterable<E> self, Map<K, V> collector, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> transform)

      Iterates through this Iterable transforming each item using the closure as a transformer into a map entry, returning the supplied map with all of the transformed entries added to it.

           def letters = "abc"
           // collect letters with index
           assert (0..2).collectEntries( [:] ) { index -> [index, letters[index]] } == [0:'a', 1:'b', 2:'c']
           assert (0..2).collectEntries( [4:'d'] ) { index ->
               [(index+1): letters[index]] } == [1:'a', 2:'b', 3:'c', 4:'d']

      Note: When using the list-style of result, the behavior is '`def (key, value) = listResultFromClosure`'. While we strongly discourage using a list of size other than 2, Groovy's normal semantics apply in this case; throwing away elements after the second one and using null for the key or value for the case of a shortened list. If your collector Map doesn't support null keys or values, you might get a runtime error, e.g. NullPointerException or IllegalArgumentException.
      Parameters:
        `self` - an Iterable
        `collector` - the Map into which the transformed entries are put
        `transform` - the closure used for transforming, which has an item from self as the parameter and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        the collector with all transformed values added to it
      See Also:
        collectEntries(Iterator, Map, Closure)
      Since:
        1.8.7

    - #### @Deprecated public static Map<K, V> collectEntries(Collection<?> self, Map<K, V> collector)

      deprecated:
        Use the Iterable version of collectEntries instead
      See Also:
        collectEntries(Iterable, Map)
      Since:
        1.8.5

    - #### public static Map<K, V> collectEntries(Iterator<?> self, Map<K, V> collector)

      A variant of collectEntries for Iterators using the identity closure as the transform and a supplied map as the destination of transformed entries.

      Parameters:
        `self` - an Iterator
        `collector` - the Map into which the transformed entries are put
      Returns:
        the collector with all transformed values added to it
      See Also:
        collectEntries(Iterable, Map)
      Since:
        1.8.7

    - #### public static Map<K, V> collectEntries(Iterable<?> self, Map<K, V> collector)

      A variant of collectEntries for Iterables using the identity closure as the transform and a supplied map as the destination of transformed entries.

      Parameters:
        `self` - an Iterable
        `collector` - the Map into which the transformed entries are put
      Returns:
        the collector with all transformed values added to it
      See Also:
        collectEntries(Iterator, Map)
      Since:
        1.8.7

    - #### @SuppressWarnings("unchecked") public static Map<K, V> collectEntries(E[] self, Map<K, V> collector, @ClosureParams(FirstParam.Component.class) Closure<?> transform)

      Iterates through this array transforming each item using the `transform` closure and returning a map of the resulting transformed entries.

           def letters = "abc"
           def nums = [0, 1, 2] as Integer[]
           // collect letters with index
           assert nums.collectEntries( [:] ) { index -> [index, letters[index]] } == [0:'a', 1:'b', 2:'c']
           assert nums.collectEntries( [4:'d'] ) { index ->
               [(index+1): letters[index]] } == [1:'a', 2:'b', 3:'c', 4:'d']

      Note: When using the list-style of result, the behavior is '`def (key, value) = listResultFromClosure`'. While we strongly discourage using a list of size other than 2, Groovy's normal semantics apply in this case; throwing away elements after the second one and using null for the key or value for the case of a shortened list. If your collector Map doesn't support null keys or values, you might get a runtime error, e.g. NullPointerException or IllegalArgumentException.
      Parameters:
        `self` - an Object array
        `collector` - the Map into which the transformed entries are put
        `transform` - the closure used for transforming, which has an item from self as the parameter and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        the collector with all transformed values added to it
      See Also:
        collect(Map, Collection, Closure)
      Since:
        1.7.9

    - #### public static Map<K, V> collectEntries(Object[] self, Map<K, V> collector)

      A variant of collectEntries using the identity closure as the transform.

      Parameters:
        `self` - an Object array
        `collector` - the Map into which the transformed entries are put
      Returns:
        the collector with all transformed values added to it
      See Also:
        collectEntries(Object[], Map, Closure)
      Since:
        1.8.5

    - #### public static Map<K, V> collectEntries(E[] self, @ClosureParams(FirstParam.Component.class) Closure<?> transform)

      Iterates through this array transforming each item using the `transform` closure and returning a map of the resulting transformed entries.

           def letters = "abc"
           def nums = [0, 1, 2] as Integer[]
           // collect letters with index using list style
           assert nums.collectEntries { index -> [index, letters[index]] } == [0:'a', 1:'b', 2:'c']
           // collect letters with index using map style
           assert nums.collectEntries { index -> [(index): letters[index]] } == [0:'a', 1:'b', 2:'c']

      Note: When using the list-style of result, the behavior is '`def (key, value) = listResultFromClosure`'. While we strongly discourage using a list of size other than 2, Groovy's normal semantics apply in this case; throwing away elements after the second one and using null for the key or value for the case of a shortened list.
      Parameters:
        `self` - a Collection
        `transform` - the closure used for transforming, which has an item from self as the parameter and should return a Map.Entry, a Map or a two-element list containing the resulting key and value
      Returns:
        a Map of the transformed entries
      See Also:
        collectEntries(Iterable, Map, Closure)
      Since:
        1.7.9

    - #### public static Map<K, V> collectEntries(Object[] self)

      A variant of collectEntries using the identity closure as the transform.

      Parameters:
        `self` - an Object array
      Returns:
        the collector with all transformed values added to it
      See Also:
        collectEntries(Object[], Closure)
      Since:
        1.8.5

    - #### @Deprecated public static List<T> collectMany(Collection<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<Collection<? extends T>> projection)

      deprecated:
        Use the Iterable version of collectMany instead
      See Also:
        collectMany(Iterable, Closure)
      Since:
        1.8.1

    - #### @Deprecated public static Collection<T> collectMany(Collection<E> self, Collection<T> collector, @ClosureParams(FirstParam.FirstGenericType.class) Closure<Collection<? extends T>> projection)

      deprecated:
        Use the Iterable version of collectMany instead
      See Also:
        collectMany(Iterable, Collection, Closure)
      Since:
        1.8.5

    - #### public static List<T> collectMany(Iterable<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<Collection<? extends T>> projection)

      Projects each item from a source Iterable to a collection and concatenates (flattens) the resulting collections into a single list.

           def nums = 1..10
           def squaresAndCubesOfEvens = nums.collectMany{ it % 2 ? [] : [it**2, it**3] }
           assert squaresAndCubesOfEvens == [4, 8, 16, 64, 36, 216, 64, 512, 100, 1000]

           def animals = ['CAT', 'DOG', 'ELEPHANT'] as Set
           def smallAnimals = animals.collectMany{ it.size() > 3 ? [] : [it.toLowerCase()] }
           assert smallAnimals == ['cat', 'dog']

           def orig = nums as Set
           def origPlusIncrements = orig.collectMany{ [it, it+1] }
           assert origPlusIncrements.size() == orig.size() * 2
           assert origPlusIncrements.unique().size() == orig.size() + 1

      Parameters:
        `self` - an Iterable
        `projection` - a projecting Closure returning a collection of items
      Returns:
        a list created from the projected collections concatenated (flattened) together
      See Also:
        sum(java.util.Collection, groovy.lang.Closure)
      Since:
        2.2.0

    - #### public static Collection<T> collectMany(Iterable<E> self, Collection<T> collector, @ClosureParams(FirstParam.FirstGenericType.class) Closure<Collection<? extends T>> projection)

      Projects each item from a source collection to a result collection and concatenates (flattens) the resulting collections adding them into the `collector`.

           def animals = ['CAT', 'DOG', 'ELEPHANT'] as Set
           def smallAnimals = animals.collectMany(['ant', 'bee']){ it.size() > 3 ? [] : [it.toLowerCase()] }
           assert smallAnimals == ['ant', 'bee', 'cat', 'dog']

           def nums = 1..5
           def origPlusIncrements = nums.collectMany([] as Set){ [it, it+1] }
           assert origPlusIncrements.size() == nums.size() + 1

      Parameters:
        `self` - an Iterable
        `collector` - an initial collection to add the projected items to
        `projection` - a projecting Closure returning a collection of items
      Returns:
        the collector with the projected collections concatenated (flattened) into it
      Since:
        2.2.0

    - #### public static Collection<T> collectMany(Map<K, V> self, Collection<T> collector, @ClosureParams(MapEntryOrKeyValue.class) Closure<Collection<? extends T>> projection)

      Projects each item from a source map to a result collection and concatenates (flattens) the resulting collections adding them into the `collector`.

           def map = [bread:3, milk:5, butter:2]
           def result = map.collectMany(['x']){ k, v -> k.startsWith('b') ? k.toList() : [] }
           assert result == ['x', 'b', 'r', 'e', 'a', 'd', 'b', 'u', 't', 't', 'e', 'r']

      Parameters:
        `self` - a map
        `collector` - an initial collection to add the projected items to
        `projection` - a projecting Closure returning a collection of items
      Returns:
        the collector with the projected collections concatenated (flattened) to it
      Since:
        1.8.8

    - #### public static Collection<T> collectMany(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<Collection<? extends T>> projection)

      Projects each item from a source map to a result collection and concatenates (flattens) the resulting collections adding them into a collection.

           def map = [bread:3, milk:5, butter:2]
           def result = map.collectMany{ k, v -> k.startsWith('b') ? k.toList() : [] }
           assert result == ['b', 'r', 'e', 'a', 'd', 'b', 'u', 't', 't', 'e', 'r']

      Parameters:
        `self` - a map
        `projection` - a projecting Closure returning a collection of items
      Returns:
        the collector with the projected collections concatenated (flattened) to it
      Since:
        1.8.8

    - #### @SuppressWarnings("unchecked") public static List<T> collectMany(E[] self, @ClosureParams(FirstParam.Component.class) Closure<Collection<? extends T>> projection)

      Projects each item from a source array to a collection and concatenates (flattens) the resulting collections into a single list.

           def nums = [1, 2, 3, 4, 5, 6] as Object[]
           def squaresAndCubesOfEvens = nums.collectMany{ it % 2 ? [] : [it**2, it**3] }
           assert squaresAndCubesOfEvens == [4, 8, 16, 64, 36, 216]

      Parameters:
        `self` - an object array
        `projection` - a projecting Closure returning a collection of items
      Returns:
        a list created from the projected collections concatenated (flattened) together
      See Also:
        sum(Object[], groovy.lang.Closure)
      Since:
        1.8.1

    - #### @SuppressWarnings("unchecked") public static List<T> collectMany(Iterator<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<Collection<? extends T>> projection)

      Projects each item from a source iterator to a collection and concatenates (flattens) the resulting collections into a single list.

           def numsIter = [1, 2, 3, 4, 5, 6].iterator()
           def squaresAndCubesOfEvens = numsIter.collectMany{ it % 2 ? [] : [it**2, it**3] }
           assert squaresAndCubesOfEvens == [4, 8, 16, 64, 36, 216]

      Parameters:
        `self` - an iterator
        `projection` - a projecting Closure returning a collection of items
      Returns:
        a list created from the projected collections concatenated (flattened) together
      See Also:
        sum(Iterator, groovy.lang.Closure)
      Since:
        1.8.1

    - #### public static List collectNested(Collection self, Closure transform)

      Recursively iterates through this collection transforming each non-Collection value into a new value using the closure as a transformer. Returns a potentially nested list of transformed values.

           assert [2,[4,6],[8],[]] == [1,[2,3],[4],[]].collectNested { it * 2 }

      Parameters:
        `self` - a collection
        `transform` - the closure used to transform each item of the collection
      Returns:
        the resultant collection
      Since:
        1.8.1

    - #### public static List collectNested(Iterable self, Closure transform)

      Recursively iterates through this Iterable transforming each non-Collection value into a new value using the closure as a transformer. Returns a potentially nested list of transformed values.

           assert [2,[4,6],[8],[]] == [1,[2,3],[4],[]].collectNested { it * 2 }

      Parameters:
        `self` - an Iterable
        `transform` - the closure used to transform each item of the Iterable
      Returns:
        the resultant list
      Since:
        2.2.0

    - #### @Deprecated public static Collection collectNested(Collection self, Collection collector, Closure transform)

      deprecated:
        Use the Iterable version of collectNested instead
      See Also:
        collectNested(Iterable, Collection, Closure)
      Since:
        1.8.1

    - #### public static Collection collectNested(Iterable self, Collection collector, Closure transform)

      Recursively iterates through this Iterable transforming each non-Collection value into a new value using the `transform` closure. Returns a potentially nested collection of transformed values.

           def x = [1,[2,3],[4],[]].collectNested(new Vector()) { it * 2 }
           assert x == [2,[4,6],[8],[]]
           assert x instanceof Vector

      Parameters:
        `self` - an Iterable
        `collector` - an initial Collection to which the transformed values are added
        `transform` - the closure used to transform each element of the Iterable
      Returns:
        the collector with all transformed values added to it
      Since:
        2.2.0

    - #### @Deprecated public static List combinations(Collection self)

      deprecated:
        Use the Iterable version of combinations instead
      See Also:
        combinations(Iterable)
      Since:
        1.5.0

    - #### public static List combinations(Iterable self)

      Adds GroovyCollections#combinations(Iterable) as a method on Iterables.

      Example usage:

           assert [['a', 'b'],[1, 2, 3]].combinations() == [['a', 1], ['b', 1], ['a', 2], ['b', 2], ['a', 3], ['b', 3]]

      Parameters:
        `self` - an Iterable of collections
      Returns:
        a List of the combinations found
      See Also:
        GroovyCollections.combinations
      Since:
        2.2.0

    - #### public static List combinations(Iterable self, Closure<?> function)

      Adds GroovyCollections#combinations(Iterable, Closure) as a method on collections.

      Example usage:

          assert [[2, 3],[4, 5, 6]].combinations {x,y -> x*y } == [8, 12, 10, 15, 12, 18]

      Parameters:
        `self` - a Collection of lists
        `function` - a closure to be called on each combination
      Returns:
        a List of the results of applying the closure to each combinations found
      See Also:
        GroovyCollections.combinations
      Since:
        2.2.0

    - #### public static int compareTo(Character left, Number right)

      Compare a Character and a Number. The ordinal value of the Character is used in the comparison (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - a Number
      Returns:
        the result of the comparison
      Since:
        1.0

    - #### public static int compareTo(Number left, Character right)

      Compare a Number and a Character. The ordinal value of the Character is used in the comparison (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Number
        `right` - a Character
      Returns:
        the result of the comparison
      Since:
        1.0

    - #### public static int compareTo(Character left, Character right)

      Compare two Characters. The ordinal values of the Characters are compared (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - a Character
      Returns:
        the result of the comparison
      Since:
        1.0

    - #### public static int compareTo(Number left, Number right)

      Compare two Numbers. Equality (==) for numbers dispatches to this.

      Parameters:
        `left` - a Number
        `right` - another Number to compare to
      Returns:
        the comparison of both numbers
      Since:
        1.0

    - #### public static boolean contains(int[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### public static boolean contains(long[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### public static boolean contains(short[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### public static boolean contains(char[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### public static boolean contains(boolean[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.8.6

    - #### public static boolean contains(double[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### public static boolean contains(float[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### public static boolean contains(byte[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### public static boolean contains(Object[] self, Object value)

      Checks whether the array contains the given value.

      Parameters:
        `self` - the array we are searching
        `value` - the value being searched for
      Returns:
        true if the array contains the value
      Since:
        1.8.6

    - #### @Deprecated public static boolean contains(CharSequence self, CharSequence text)

    - #### @Deprecated public static boolean contains(String self, String text)

    - #### public static boolean containsAll(Collection self, Object[] items)

      Returns `true` if this collection contains all of the elements in the specified array.

      Parameters:
        `self` - a Collection to be checked for containment
        `items` - array to be checked for containment in this collection
      Returns:
        `true` if this collection contains all of the elements in the specified array
      See Also:
        Collection.containsAll
      Since:
        1.7.2

    - #### public static Number count(Iterator self, Object value)

      Counts the number of occurrences of the given value from the items within this Iterator. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ). The iterator will become exhausted of elements after determining the count value.

      Parameters:
        `self` - the Iterator from which we count the number of matching occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.5.0

    - #### public static Number count(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Counts the number of occurrences which satisfy the given closure from the items within this Iterator. The iterator will become exhausted of elements after determining the count value.

      Example usage:

          assert [2,4,2,1,3,5,2,4,3].toSet().iterator().count{ it % 2 == 0 } == 2

      Parameters:
        `self` - the Iterator from which we count the number of matching occurrences
        `closure` - a closure condition
      Returns:
        the number of occurrences
      Since:
        1.8.0

    - #### @Deprecated public static Number count(Collection self, Object value)

      deprecated:
        use count(Iterable, Closure)
      Since:
        1.0

    - #### public static Number count(Iterable self, Object value)

      Counts the number of occurrences of the given value inside this Iterable. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Example usage:

          assert [2,4,2,1,3,5,2,4,3].count(4) == 2

      Parameters:
        `self` - the Iterable within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        2.2.0

    - #### @Deprecated public static Number count(Collection self, Closure closure)

      deprecated:
        use count(Iterable, Closure)
      Since:
        1.8.0

    - #### public static Number count(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Counts the number of occurrences which satisfy the given closure from inside this Iterable.

      Example usage:

          assert [2,4,2,1,3,5,2,4,3].count{ it % 2 == 0 } == 5

      Parameters:
        `self` - the Iterable within which we count the number of occurrences
        `closure` - a closure condition
      Returns:
        the number of occurrences
      Since:
        2.2.0

    - #### public static Number count(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<?> closure)

      Counts the number of occurrences which satisfy the given closure from inside this map. If the closure takes one parameter then it will be passed the Map.Entry. Otherwise, the closure should take two parameters and will be passed the key and value.

      Example usage:

          assert [a:1, b:1, c:2, d:2].count{ k,v -> k == 'a' || v == 2 } == 3

      Parameters:
        `self` - the map within which we count the number of occurrences
        `closure` - a 1 or 2 arg Closure condition applying on the entries
      Returns:
        the number of occurrences
      Since:
        1.8.0

    - #### public static Number count(Object[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(T[] self, @ClosureParams(FirstParam.Component.class) Closure closure)

      Counts the number of occurrences which satisfy the given closure from inside this array.

      Parameters:
        `self` - the array within which we count the number of occurrences
        `closure` - a closure condition
      Returns:
        the number of occurrences
      Since:
        1.8.0

    - #### public static Number count(int[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(long[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(short[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(char[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(boolean[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(double[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(float[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### public static Number count(byte[] self, Object value)

      Counts the number of occurrences of the given value inside this array. Comparison is done using Groovy's == operator (using `compareTo(value) == 0` or `equals(value)` ).

      Parameters:
        `self` - the array within which we count the number of occurrences
        `value` - the value being searched for
      Returns:
        the number of occurrences
      Since:
        1.6.4

    - #### @Deprecated public static int count(CharSequence self, CharSequence text)

    - #### @Deprecated public static int count(String self, String text)

    - #### @Deprecated public static Map<K, Integer> countBy(Collection self, Closure<K> closure)

      deprecated:
        Use the Iterable version of countBy instead
      See Also:
        countBy(Iterable, Closure)
      Since:
        1.8.0

    - #### public static Map<K, Integer> countBy(Iterable<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<K> closure)

      Sorts all collection members into groups determined by the supplied mapping closure and counts the group size. The closure should return the key that each item should be grouped by. The returned Map will have an entry for each distinct key returned from the closure, with each value being the frequency of items occurring for that group.

      Example usage:

          assert [0:2, 1:3] == [1,2,3,4,5].countBy { it % 2 }

      Parameters:
        `self` - a collection to group and count
        `closure` - a closure mapping items to the frequency keys
      Returns:
        a new Map grouped by keys with frequency counts
      Since:
        2.2.0

    - #### public static Map<K, Integer> countBy(E[] self, @ClosureParams(FirstParam.Component.class) Closure<K> closure)

      Sorts all array members into groups determined by the supplied mapping closure and counts the group size. The closure should return the key that each item should be grouped by. The returned Map will have an entry for each distinct key returned from the closure, with each value being the frequency of items occurring for that group.

      Example usage:

          assert ([1,2,2,2,3] as Object[]).countBy{ it % 2 } == [1:2, 0:3]

      Parameters:
        `self` - an object array to group and count
        `closure` - a closure mapping items to the frequency keys
      Returns:
        a new Map grouped by keys with frequency counts
      See Also:
        countBy(Collection, Closure)
      Since:
        1.8.0

    - #### public static Map<K, Integer> countBy(Iterator<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<K> closure)

      Sorts all iterator items into groups determined by the supplied mapping closure and counts the group size. The closure should return the key that each item should be grouped by. The returned Map will have an entry for each distinct key returned from the closure, with each value being the frequency of items occurring for that group.

      Example usage:

          assert [1,2,2,2,3].toSet().iterator().countBy{ it % 2 } == [1:2, 0:1]

      Parameters:
        `self` - an iterator to group and count
        `closure` - a closure mapping items to the frequency keys
      Returns:
        a new Map grouped by keys with frequency counts
      See Also:
        countBy(Collection, Closure)
      Since:
        1.8.0

    - #### public static Map<K, Integer> countBy(Map<U, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<K> closure)

      Groups the members of a map into groups determined by the supplied mapping closure and counts the frequency of the created groups. The closure will be passed a Map.Entry or key and value (depending on the number of parameters the closure accepts) and should return the key that each item should be grouped under. The resulting map will have an entry for each 'group' key returned by the closure, with values being the frequency counts for that 'group'.

          def result = [a:1,b:2,c:3,d:4,e:5].countBy { it.value % 2 }
           assert result == [0:2, 1:3]

      Parameters:
        `self` - a map to group and count
        `closure` - a closure mapping entries to frequency count keys
      Returns:
        a new Map grouped by keys with frequency counts
      Since:
        1.8.0

    - #### @Deprecated protected static StringBufferWriter createStringBufferWriter(StringBuffer self)

    - #### @Deprecated protected static StringWriter createStringWriter(String self)

    - #### @Deprecated public static boolean deleteDir(File self)

    - #### @Deprecated public static CharSequence denormalize(CharSequence self)

    - #### @Deprecated public static String denormalize(String self)

    - #### public static boolean disjoint(Collection left, Collection right)

      Returns `true` if the intersection of two collections is empty.

          assert [1,2,3].disjoint([3,4,5]) == false

          assert [1,2].disjoint([3,4]) == true

      Parameters:
        `left` - a Collection
        `right` - a Collection
      Returns:
        boolean `true` if the intersection of two collections is empty, `false` otherwise.
      Since:
        1.0

    - #### public static Number div(Character left, Number right)

      Divide a Character by a Number. The ordinal value of the Character is used in the division (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - a Number
      Returns:
        the Number corresponding to the division of left by right
      Since:
        1.0

    - #### public static Number div(Number left, Character right)

      Divide a Number by a Character. The ordinal value of the Character is used in the division (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Number
        `right` - a Character
      Returns:
        the Number corresponding to the division of left by right
      Since:
        1.0

    - #### public static Number div(Character left, Character right)

      Divide one Character by another. The ordinal values of the Characters are used in the division (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - another Character
      Returns:
        the Number corresponding to the division of left by right
      Since:
        1.0

    - #### public static void downto(Number self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a Number
        `to` - another Number to go down to
        `closure` - the closure to call
      Since:
        1.0

    - #### public static void downto(long self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a long
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void downto(Long self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a Long
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void downto(float self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a float
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void downto(Float self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a Float
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void downto(double self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a double
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void downto(Double self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a Double
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void downto(BigInteger self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time.

      Parameters:
        `self` - a BigInteger
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void downto(BigDecimal self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number down to the given number, inclusive, decrementing by one each time. Each number is passed to the closure. Example:

          10.5.downto(0) {
             println it
           }

      Prints numbers 10.5, 9.5 ... to 0.5.
      Parameters:
        `self` - a BigDecimal
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static List<T> drop(List<T> self, int num)

      Drops the given number of elements from the head of this list if they are available.

           def strings = [ 'a', 'b', 'c' ]
           assert strings.drop( 0 ) == [ 'a', 'b', 'c' ]
           assert strings.drop( 2 ) == [ 'c' ]
           assert strings.drop( 5 ) == []

      Similar to drop(Iterable, int) except that it attempts to preserve the type of the original list.
      Parameters:
        `self` - the original list
        `num` - the number of elements to drop from this list
      Returns:
        a list consisting of all elements of this list except the first `num` ones, or else the empty list, if this list has less than `num` elements.
      Since:
        1.8.1

    - #### public static List<T> drop(Iterable<T> self, int num)

      Drops the given number of elements from the head of this Iterable.

           class AbcIterable implements Iterable {
               Iterator iterator() { "abc".iterator() }
           }
           def abc = new AbcIterable()
           assert abc.drop(0) == ['a', 'b', 'c']
           assert abc.drop(1) == ['b', 'c']
           assert abc.drop(3) == []
           assert abc.drop(5) == []

      Parameters:
        `self` - the original Iterable
        `num` - the number of elements to drop from this Iterable
      Returns:
        a List consisting of all the elements of this Iterable minus the first `num` elements, or an empty list if it has less then `num` elements.
      Since:
        1.8.7

    - #### public static T[] drop(T[] self, int num)

      Drops the given number of elements from the head of this array if they are available.

           String[] strings = [ 'a', 'b', 'c' ]
           assert strings.drop( 0 ) == [ 'a', 'b', 'c' ] as String[]
           assert strings.drop( 2 ) == [ 'c' ] as String[]
           assert strings.drop( 5 ) == [] as String[]

      Parameters:
        `self` - the original array
        `num` - the number of elements to drop from this array
      Returns:
        an array consisting of all elements of this array except the first `num` ones, or else the empty array, if this array has less than `num` elements.
      Since:
        1.8.1

    - #### public static Map<K, V> drop(Map<K, V> self, int num)

      Drops the given number of key/value pairs from the head of this map if they are available.

           def strings = [ 'a':10, 'b':20, 'c':30 ]
           assert strings.drop( 0 ) == [ 'a':10, 'b':20, 'c':30 ]
           assert strings.drop( 2 ) == [ 'c':30 ]
           assert strings.drop( 5 ) == [:]

      If the map instance does not have ordered keys, then this function could drop a random `num` entries. Groovy by default uses LinkedHashMap, so this shouldn't be an issue in the main.
      Parameters:
        `self` - the original map
        `num` - the number of elements to drop from this map
      Returns:
        a map consisting of all key/value pairs of this map except the first `num` ones, or else the empty map, if this map has less than `num` elements.
      Since:
        1.8.1

    - #### public static Iterator<T> drop(Iterator<T> self, int num)

      Drops the given number of elements from the head of this iterator if they are available. The original iterator is stepped along by `num` elements.

           def iteratorCompare( Iterator a, List b ) {
               a.collect { it } == b
           }
           def iter = [ 1, 2, 3, 4, 5 ].listIterator()
           assert iteratorCompare( iter.drop( 0 ), [ 1, 2, 3, 4, 5 ] )
           iter = [ 1, 2, 3, 4, 5 ].listIterator()
           assert iteratorCompare( iter.drop( 2 ), [ 3, 4, 5 ] )
           iter = [ 1, 2, 3, 4, 5 ].listIterator()
           assert iteratorCompare( iter.drop( 5 ), [] )

      Parameters:
        `self` - the original iterator
        `num` - the number of elements to drop from this iterator
      Returns:
        The iterator stepped along by `num` elements if they exist.
      Since:
        1.8.1

    - #### @Deprecated public static CharSequence drop(CharSequence self, int num)

    - #### public static List<T> dropWhile(List<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> condition)

      Returns a suffix of this List where elements are dropped from the front while the given Closure evaluates to true. Similar to dropWhile(Iterable, groovy.lang.Closure) except that it attempts to preserve the type of the original list.

           def nums = [ 1, 3, 2 ]
           assert nums.dropWhile{ it < 4 } == []
           assert nums.dropWhile{ it < 3 } == [ 3, 2 ]
           assert nums.dropWhile{ it != 2 } == [ 2 ]
           assert nums.dropWhile{ it == 0 } == [ 1, 3, 2 ]

      Parameters:
        `self` - the original list
        `condition` - the closure that must evaluate to true to continue dropping elements
      Returns:
        the shortest suffix of the given List such that the given closure condition evaluates to true for each element dropped from the front of the List
      Since:
        1.8.7

    - #### public static List<T> dropWhile(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> condition)

      Returns a suffix of this Iterable where elements are dropped from the front while the given closure evaluates to true.

           class AbcIterable implements Iterable {
               Iterator iterator() { "abc".iterator() }
           }
           def abc = new AbcIterable()
           assert abc.dropWhile{ it < 'b' } == ['b', 'c']
           assert abc.dropWhile{ it <= 'b' } == ['c']

      Parameters:
        `self` - an Iterable
        `condition` - the closure that must evaluate to true to continue dropping elements
      Returns:
        the shortest suffix of the given Iterable such that the given closure condition evaluates to true for each element dropped from the front of the Iterable
      Since:
        1.8.7

    - #### public static Map<K, V> dropWhile(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<?> condition)

      Create a suffix of the given Map by dropping as many entries as possible from the front of the original Map such that calling the given closure condition evaluates to true when passed each of the dropped entries (or key/value pairs).

           def shopping = [milk:1, bread:2, chocolate:3]
           assert shopping.dropWhile{ it.key.size() < 6 } == [chocolate:3]
           assert shopping.dropWhile{ it.value % 2 } == [bread:2, chocolate:3]
           assert shopping.dropWhile{ k, v -> k.size() + v <= 7 } == [chocolate:3]

      If the map instance does not have ordered keys, then this function could appear to drop random entries. Groovy by default uses LinkedHashMap, so this shouldn't be an issue in the main.
      Parameters:
        `self` - a Map
        `condition` - a 1 (or 2) arg Closure that must evaluate to true for the entry (or key and value) to continue dropping elements
      Returns:
        the shortest suffix of the given Map such that the given closure condition evaluates to true for each element dropped from the front of the Map
      Since:
        1.8.7

    - #### public static T[] dropWhile(T[] self, @ClosureParams(FirstParam.Component.class) Closure<?> condition)

      Create a suffix of the given array by dropping as many elements as possible from the front of the original array such that calling the given closure condition evaluates to true when passed each of the dropped elements.

           def nums = [ 1, 3, 2 ] as Integer[]
           assert nums.dropWhile{ it <= 3 } == [ ] as Integer[]
           assert nums.dropWhile{ it < 3 } == [ 3, 2 ] as Integer[]
           assert nums.dropWhile{ it != 2 } == [ 2 ] as Integer[]
           assert nums.dropWhile{ it == 0 } == [ 1, 3, 2 ] as Integer[]

      Parameters:
        `self` - the original array
        `condition` - the closure that must evaluate to true to continue dropping elements
      Returns:
        the shortest suffix of the given array such that the given closure condition evaluates to true for each element dropped from the front of the array
      Since:
        1.8.7

    - #### public static Iterator<T> dropWhile(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> condition)

      Creates an Iterator that returns a suffix of the elements from an original Iterator. As many elements as possible are dropped from the front of the original Iterator such that calling the given closure condition evaluates to true when passed each of the dropped elements.

           def a = 0
           def iter = [ hasNext:{ a < 10 }, next:{ a++ } ] as Iterator
           assert [].iterator().dropWhile{ it < 3 }.toList() == []
           assert [1, 2, 3, 4, 5].iterator().dropWhile{ it < 3 }.toList() == [ 3, 4, 5 ]
           assert iter.dropWhile{ it < 5 }.toList() == [ 5, 6, 7, 8, 9 ]

      Parameters:
        `self` - the Iterator
        `condition` - the closure that must evaluate to true to continue dropping elements
      Returns:
        the shortest suffix of elements from the given Iterator such that the given closure condition evaluates to true for each element dropped from the front of the Iterator
      Since:
        1.8.7

    - #### public static String dump(Object self)

      Generates a detailed dump string of an object showing its class, hashCode and fields.

      Parameters:
        `self` - an object
      Returns:
        the dump representation
      Since:
        1.0

    - #### public static T each(T self, Closure closure)

      Iterates through an aggregate type or data structure, passing each item to the given closure. Custom types may utilize this method by simply providing an "iterator()" method. The items returned from the resulting iterator will be passed to the closure.

      Parameters:
        `self` - the object over which we iterate
        `closure` - the closure applied on each element found
      Returns:
        the self Object
      Since:
        1.0

    - #### public static Iterable<T> each(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

    - #### public static Map<K, V> each(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure closure)

      Allows a Map to be iterated through using a closure. If the closure takes one parameter then it will be passed the Map.Entry otherwise if the closure takes two parameters then it will be passed the key and the value.

          def result = ""
           [a:1, b:3].each { key, value -> result += "$key$value" }
           assert result == "a1b3"

          def result = ""
           [a:1, b:3].each { entry -> result += entry }
           assert result == "a=1b=3"

      In general, the order in which the map contents are processed cannot be guaranteed. In practise, specialized forms of Map, e.g. a TreeMap will have its contents processed according to the natural ordering of the map.
      Parameters:
        `self` - the map over which we iterate
        `closure` - the 1 or 2 arg closure applied on each entry of the map
      Returns:
        returns the self parameter
      Since:
        1.5.0

    - #### public static void eachByte(Byte[] self, @ClosureParams(FirstParam.Component.class) Closure closure)

      Traverse through each byte of this Byte array. Alias for each.

      Parameters:
        `self` - a Byte array
        `closure` - a closure
      See Also:
        each(java.lang.Object, groovy.lang.Closure)
      Since:
        1.5.5

    - #### public static void eachByte(byte[] self, @ClosureParams(FirstParam.Component.class) Closure closure)

      Traverse through each byte of this byte array. Alias for each.

      Parameters:
        `self` - a byte array
        `closure` - a closure
      See Also:
        each(java.lang.Object, groovy.lang.Closure)
      Since:
        1.5.5

    - #### @Deprecated public static void eachByte(File self, Closure closure)

    - #### @Deprecated public static void eachByte(File self, int bufferLen, Closure closure)

    - #### @Deprecated public static void eachByte(InputStream is, Closure closure)

    - #### @Deprecated public static void eachByte(InputStream is, int bufferLen, Closure closure)

    - #### @Deprecated public static void eachByte(URL url, Closure closure)

    - #### @Deprecated public static void eachByte(URL url, int bufferLen, Closure closure)

    - #### public static void eachCombination(Iterable self, Closure<?> function)

      Applies a function on each combination of the input lists.

      Example usage:

          [[2, 3],[4, 5, 6]].eachCombination { println "Found $it" }

      Parameters:
        `self` - a Collection of lists
        `function` - a closure to be called on each combination
      See Also:
        GroovyCollections.combinations
      Since:
        2.2.0

    - #### @Deprecated public static void eachDir(File self, Closure closure)

    - #### @Deprecated public static void eachDirMatch(File self, Object nameFilter, Closure closure)

    - #### @Deprecated public static void eachDirRecurse(File self, Closure closure)

    - #### @Deprecated public static void eachFile(File self, FileType fileType, Closure closure)

    - #### @Deprecated public static void eachFile(File self, Closure closure)

    - #### @Deprecated public static void eachFileMatch(File self, FileType fileType, Object nameFilter, Closure closure)

    - #### @Deprecated public static void eachFileMatch(File self, Object nameFilter, Closure closure)

    - #### @Deprecated public static void eachFileRecurse(File self, FileType fileType, Closure closure)

    - #### @Deprecated public static void eachFileRecurse(File self, Closure closure)

    - #### @Deprecated public static T eachLine(CharSequence self, Closure<T> closure)

    - #### @Deprecated public static T eachLine(CharSequence self, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(String self, Closure<T> closure)

    - #### @Deprecated public static T eachLine(String self, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(File self, Closure<T> closure)

    - #### @Deprecated public static T eachLine(File self, String charset, Closure<T> closure)

    - #### @Deprecated public static T eachLine(File self, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(File self, String charset, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(InputStream stream, String charset, Closure<T> closure)

    - #### @Deprecated public static T eachLine(InputStream stream, String charset, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(InputStream stream, Closure<T> closure)

    - #### @Deprecated public static T eachLine(InputStream stream, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(URL url, Closure<T> closure)

    - #### @Deprecated public static T eachLine(URL url, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(URL url, String charset, Closure<T> closure)

    - #### @Deprecated public static T eachLine(URL url, String charset, int firstLine, Closure<T> closure)

    - #### @Deprecated public static T eachLine(Reader self, Closure<T> closure)

    - #### @Deprecated public static T eachLine(Reader self, int firstLine, Closure<T> closure)

    - #### @Deprecated public static String eachMatch(CharSequence self, CharSequence regex, Closure closure)

    - #### @Deprecated public static String eachMatch(CharSequence self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String eachMatch(String self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String eachMatch(String self, String regex, Closure closure)

    - #### @Deprecated public static void eachObject(File self, Closure closure)

    - #### @Deprecated public static void eachObject(ObjectInputStream ois, Closure closure)

    - #### public static Iterator<List<T>> eachPermutation(Collection<T> self, Closure closure)

      Iterates over all permutations of a collection, running a closure for each iteration.

      Example usage:

          def permutations = []
           [1, 2, 3].eachPermutation{ permutations << it }
           assert permutations == [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]]

      Parameters:
        `self` - the Collection of items
        `closure` - the closure to call for each permutation
      Returns:
        the permutations from the list
      Since:
        1.7.0

    - #### public static T eachWithIndex(T self, Closure closure)

      Iterates through an aggregate type or data structure, passing each item and the item's index (a counter starting at zero) to the given closure.

      Parameters:
        `self` - an Object
        `closure` - a Closure to operate on each item
      Returns:
        the self Object
      Since:
        1.0

    - #### public static Iterable<T> eachWithIndex(Iterable<T> self, @ClosureParams(value=FromString.class, options="T,Integer") Closure closure)

      Iterates through an iterable type, passing each item and the item's index (a counter starting at zero) to the given closure.

      Parameters:
        `self` - an Iterable
        `closure` - a Closure to operate on each item
      Returns:
        the self Iterable
      Since:
        2.3.0

    - #### public static Iterator<T> eachWithIndex(Iterator<T> self, @ClosureParams(value=FromString.class, options="T,Integer") Closure closure)

      Iterates through an iterator type, passing each item and the item's index (a counter starting at zero) to the given closure.

      Parameters:
        `self` - an Iterable
        `closure` - a Closure to operate on each item
      Returns:
        the self Iterable
      Since:
        2.3.0

    - #### public static Map<K, V> eachWithIndex(Map<K, V> self, @ClosureParams(value=MapEntryOrKeyValue.class, options="index=true") Closure closure)

      Allows a Map to be iterated through using a closure. If the closure takes two parameters then it will be passed the Map.Entry and the item's index (a counter starting at zero) otherwise if the closure takes three parameters then it will be passed the key, the value, and the index.

          def result = ""
           [a:1, b:3].eachWithIndex { key, value, index -> result += "$index($key$value)" }
           assert result == "0(a1)1(b3)"

          def result = ""
           [a:1, b:3].eachWithIndex { entry, index -> result += "$index($entry)" }
           assert result == "0(a=1)1(b=3)"

      Parameters:
        `self` - the map over which we iterate
        `closure` - a 2 or 3 arg Closure to operate on each item
      Returns:
        the self Object
      Since:
        1.5.0

    - #### public static boolean equals(int[] left, int[] right)

      Compare the contents of this array to the contents of the given array.

      Parameters:
        `left` - an int array
        `right` - the array being compared
      Returns:
        true if the contents of both arrays are equal.
      Since:
        1.5.0

    - #### public static boolean equals(Object[] left, List right)

      Determines if the contents of this array are equal to the contents of the given list, in the same order. This returns `false` if either collection is `null`.

      Parameters:
        `left` - an array
        `right` - the List being compared
      Returns:
        true if the contents of both collections are equal
      Since:
        1.5.0

    - #### public static boolean equals(List left, Object[] right)

      Determines if the contents of this list are equal to the contents of the given array in the same order. This returns `false` if either collection is `null`.

          assert [1, "a"].equals( [ 1, "a" ] as Object[] )

      Parameters:
        `left` - a List
        `right` - the Object[] being compared to
      Returns:
        true if the contents of both collections are equal
      Since:
        1.5.0

    - #### public static boolean equals(List left, List right)

      Compare the contents of two Lists. Order matters. If numbers exist in the Lists, then they are compared as numbers, for example 2 == 2L. If both lists are `null`, the result is true; otherwise if either list is `null`, the result is `false`.

          assert ["a", 2].equals(["a", 2])
           assert ![2, "a"].equals("a", 2)
           assert [2.0, "a"].equals(2L, "a") // number comparison at work

      Parameters:
        `left` - a List
        `right` - the List being compared to
      Returns:
        boolean `true` if the contents of both lists are identical, `false` otherwise.
      Since:
        1.0

    - #### public static boolean equals(Set<T> self, Set<T> other)

      Compare the contents of two Sets for equality using Groovy's coercion rules.

      Returns `true` if the two sets have the same size, and every member of the specified set is contained in this set (or equivalently, every member of this set is contained in the specified set). If numbers exist in the sets, then they are compared as numbers, for example 2 == 2L. If both sets are `null`, the result is true; otherwise if either set is `null`, the result is `false`. Example usage:

           Set s1 = ["a", 2]
           def s2 = [2, 'a'] as Set
           Set s3 = [3, 'a']
           def s4 = [2.0, 'a'] as Set
           def s5 = [2L, 'a'] as Set
           assert s1.equals(s2)
           assert !s1.equals(s3)
           assert s1.equals(s4)
           assert s1.equals(s5)

      Parameters:
        `self` - a Set
        `other` - the Set being compared to
      Returns:
        `true` if the contents of both sets are identical
      Since:
        1.8.0

    - #### public static boolean equals(Map self, Map other)

      Compares two Maps treating coerced numerical values as identical.

      Example usage:

          assert [a:2, b:3] == [a:2L, b:3.0]

      Parameters:
        `self` - this Map
        `other` - the Map being compared to
      Returns:
        `true` if the contents of both maps are identical
      Since:
        1.8.0

    - #### public static boolean every(Object self, Closure closure)

      Used to determine if the given predicate closure is valid (i.e.&nsbp;returns `true` for all items in this data structure). A simple example for a list:

          def list = [3,4,5]
           def greaterThanTwo = list.every { it > 2 }

      Parameters:
        `self` - the object over which we iterate
        `closure` - the closure predicate used for matching
      Returns:
        true if every iteration of the object matches the closure predicate
      Since:
        1.0

    - #### public static boolean every(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Used to determine if the given predicate closure is valid (i.e.&nsbp;returns `true` for all items in this iterator). A simple example for a list:

          def list = [3,4,5]
           def greaterThanTwo = list.iterator().every { it > 2 }

      Parameters:
        `self` - the iterator over which we iterate
        `closure` - the closure predicate used for matching
      Returns:
        true if every iteration of the object matches the closure predicate
      Since:
        2.3.0

    - #### public static boolean every(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Used to determine if the given predicate closure is valid (i.e.&nsbp;returns `true` for all items in this iterable). A simple example for a list:

          def list = [3,4,5]
           def greaterThanTwo = list.every { it > 2 }

      Parameters:
        `self` - the iterable over which we iterate
        `closure` - the closure predicate used for matching
      Returns:
        true if every iteration of the object matches the closure predicate
      Since:
        2.3.0

    - #### public static boolean every(Map<K, V> self, @ClosureParams(value=MapEntryOrKeyValue.class) Closure closure)

      Iterates over the entries of a map, and checks whether a predicate is valid for all entries. If the closure takes one parameter then it will be passed the Map.Entry otherwise if the closure takes two parameters then it will be passed the key and the value.

          def map = [a:1, b:2.0, c:2L]
           assert !map.every { key, value -> value instanceof Integer }
           assert map.every { entry -> entry.value instanceof Number }

      Parameters:
        `self` - the map over which we iterate
        `closure` - the 1 or 2 arg Closure predicate used for matching
      Returns:
        true if every entry of the map matches the closure predicate
      Since:
        1.5.0

    - #### public static boolean every(Object self)

      Iterates over every element of a collection, and checks whether all elements are `true` according to the Groovy Truth. Equivalent to `self.every({element -> element})`

      Parameters:
        `self` - the object over which we iterate
      Returns:
        true if every item in the collection matches the closure predicate
      Since:
        1.5.0

    - #### @Deprecated public static Process execute(String self)

    - #### @Deprecated public static Process execute(String self, String[] envp, File dir)

    - #### @Deprecated public static Process execute(String self, List envp, File dir)

    - #### @Deprecated public static Process execute(String[] commandArray)

    - #### @Deprecated public static Process execute(String[] commandArray, String[] envp, File dir)

    - #### @Deprecated public static Process execute(String[] commandArray, List envp, File dir)

    - #### @Deprecated public static Process execute(List commands)

    - #### @Deprecated public static Process execute(List commands, String[] envp, File dir)

    - #### @Deprecated public static Process execute(List commands, List envp, File dir)

    - #### @Deprecated public static CharSequence expand(CharSequence self)

    - #### @Deprecated public static CharSequence expand(CharSequence self, int tabStop)

    - #### @Deprecated public static String expand(String self)

    - #### @Deprecated public static String expand(String self, int tabStop)

    - #### @Deprecated public static CharSequence expandLine(CharSequence self, int tabStop)

    - #### @Deprecated public static String expandLine(String self, int tabStop)

    - #### @Deprecated public static void filterLine(Reader reader, Writer writer, Closure closure)

    - #### @Deprecated public static Writable filterLine(File self, Closure closure)

    - #### @Deprecated public static Writable filterLine(File self, String charset, Closure closure)

    - #### @Deprecated public static void filterLine(File self, Writer writer, Closure closure)

    - #### @Deprecated public static void filterLine(File self, Writer writer, String charset, Closure closure)

    - #### @Deprecated public static Writable filterLine(Reader reader, Closure closure)

    - #### @Deprecated public static Writable filterLine(InputStream self, Closure predicate)

    - #### @Deprecated public static Writable filterLine(InputStream self, String charset, Closure predicate)

    - #### @Deprecated public static void filterLine(InputStream self, Writer writer, Closure predicate)

    - #### @Deprecated public static void filterLine(InputStream self, Writer writer, String charset, Closure predicate)

    - #### @Deprecated public static Writable filterLine(URL self, Closure predicate)

    - #### @Deprecated public static Writable filterLine(URL self, String charset, Closure predicate)

    - #### @Deprecated public static void filterLine(URL self, Writer writer, Closure predicate)

    - #### @Deprecated public static void filterLine(URL self, Writer writer, String charset, Closure predicate)

    - #### public static Object find(Object self, Closure closure)

      Finds the first value matching the closure condition

      Parameters:
        `self` - an Object with an iterator returning its values
        `closure` - a closure condition
      Returns:
        the first Object found or null if none was found
      Since:
        1.0

    - #### public static Object find(Object self)

      Finds the first item matching the IDENTITY Closure (i.e. matching Groovy truth).

      Example:

           def items = [null, 0, 0.0, false, '', [], 42, 43]
           assert items.find() == 42

      Parameters:
        `self` - an Object with an Iterator returning its values
      Returns:
        the first Object found or null if none was found
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### public static T find(Collection<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Finds the first value matching the closure condition. Example:

          def list = [1,2,3]
           assert 2 == list.find { it > 1 }

      Parameters:
        `self` - a Collection
        `closure` - a closure condition
      Returns:
        the first Object found, in the order of the collections iterator, or null if no element matches
      Since:
        1.0

    - #### public static T find(T[] self, @ClosureParams(FirstParam.Component.class) Closure condition)

      Finds the first element in the array that matches the given closure condition. Example:

           def list = [1,2,3] as Integer[]
           assert 2 == list.find { it > 1 }
           assert null == list.find { it > 5 }

      Parameters:
        `self` - an Array
        `condition` - a closure condition
      Returns:
        the first element from the array that matches the condition or null if no element matches
      Since:
        2.0

    - #### public static T find(Collection<T> self)

      Finds the first item matching the IDENTITY Closure (i.e. matching Groovy truth).

      Example:

           def items = [null, 0, 0.0, false, '', [], 42, 43]
           assert items.find() == 42

      Parameters:
        `self` - a Collection
      Returns:
        the first Object found or null if none was found
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### public static Map.Entry<K, V> find(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<?> closure)

      Finds the first entry matching the closure condition. If the closure takes two parameters, the entry key and value are passed. If the closure takes one parameter, the Map.Entry object is passed.

          assert [a:1, b:3].find { it.value == 3 }.key == "b"

      Parameters:
        `self` - a Map
        `closure` - a 1 or 2 arg Closure condition
      Returns:
        the first Object found
      Since:
        1.0

    - #### @Deprecated public static CharSequence find(CharSequence self, CharSequence regex)

    - #### @Deprecated public static CharSequence find(CharSequence self, CharSequence regex, Closure closure)

    - #### @Deprecated public static CharSequence find(CharSequence self, Pattern pattern)

    - #### @Deprecated public static CharSequence find(CharSequence self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String find(String self, Pattern pattern)

    - #### @Deprecated public static String find(String self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String find(String self, String regex)

    - #### @Deprecated public static String find(String self, String regex, Closure closure)

    - #### public static Collection<T> findAll(Collection<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Finds all values matching the closure condition.

          assert [2,4] == [1,2,3,4].findAll { it % 2 == 0 }

      Parameters:
        `self` - a Collection
        `closure` - a closure condition
      Returns:
        a Collection of matching values
      Since:
        1.5.6

    - #### public static Collection<T> findAll(T[] self, @ClosureParams(FirstParam.Component.class) Closure condition)

      Finds all elements of the array matching the given Closure condition.

           def items = [1,2,3,4] as Integer[]
           assert [2,4] == items.findAll { it % 2 == 0 }

      Parameters:
        `self` - an array
        `condition` - a closure condition
      Returns:
        a list of matching values
      Since:
        2.0

    - #### public static Collection<T> findAll(Collection<T> self)

      Finds the items matching the IDENTITY Closure (i.e. matching Groovy truth).

      Example:

           def items = [1, 2, 0, false, true, '', 'foo', [], [4, 5], null]
           assert items.findAll() == [1, 2, true, 'foo', [4, 5]]

      Parameters:
        `self` - a Collection
      Returns:
        a List of the values found
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### public static Collection<T> findAll(T[] self)

      Finds the elements of the array matching the IDENTITY Closure (i.e. matching Groovy truth).

      Example:

           def items = [1, 2, 0, false, true, '', 'foo', [], [4, 5], null] as Object[]
           assert items.findAll() == [1, 2, true, 'foo', [4, 5]]

      Parameters:
        `self` - an array
      Returns:
        a collection of the elements found
      See Also:
        Closure.IDENTITY
      Since:
        2.0

    - #### public static Collection findAll(Object self, Closure closure)

      Finds all items matching the closure condition.

      Parameters:
        `self` - an Object with an Iterator returning its values
        `closure` - a closure condition
      Returns:
        a List of the values found
      Since:
        1.6.0

    - #### public static Collection findAll(Object self)

      Finds all items matching the IDENTITY Closure (i.e. matching Groovy truth).

      Example:

           def items = [1, 2, 0, false, true, '', 'foo', [], [4, 5], null]
           assert items.findAll() == [1, 2, true, 'foo', [4, 5]]

      Parameters:
        `self` - an Object with an Iterator returning its values
      Returns:
        a List of the values found
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### public static Map<K, V> findAll(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure closure)

      Finds all entries matching the closure condition. If the closure takes one parameter then it will be passed the Map.Entry. Otherwise if the closure should take two parameters, which will be the key and the value.

      If the `self` map is one of TreeMap, LinkedHashMap, Hashtable or Properties, the returned Map will preserve that type, otherwise a HashMap will be returned.

      Example usage:

           def result = [a:1, b:2, c:4, d:5].findAll { it.value % 2 == 0 }
           assert result.every { it instanceof Map.Entry }
           assert result*.key == ["b", "c"]
           assert result*.value == [2, 4]

      Parameters:
        `self` - a Map
        `closure` - a 1 or 2 arg Closure condition applying on the entries
      Returns:
        a new subMap
      Since:
        1.0

    - #### @Deprecated public static List<CharSequence> findAll(CharSequence self, CharSequence regex)

    - #### @Deprecated public static List<T> findAll(CharSequence self, CharSequence regex, Closure<T> closure)

    - #### @Deprecated public static List<CharSequence> findAll(CharSequence self, Pattern pattern)

    - #### @Deprecated public static List<T> findAll(CharSequence self, Pattern pattern, Closure<T> closure)

    - #### @Deprecated public static List<String> findAll(String self, Pattern pattern)

    - #### @Deprecated public static List<T> findAll(String self, Pattern pattern, Closure<T> closure)

    - #### @Deprecated public static List<String> findAll(String self, String regex)

    - #### @Deprecated public static List<T> findAll(String self, String regex, Closure<T> closure)

    - #### public static int findIndexOf(Object self, Closure closure)

      Iterates over the elements of an iterable collection of items and returns the index of the first item that matches the condition specified in the closure.

      Parameters:
        `self` - the iteration object over which to iterate
        `closure` - the filter to perform a match on the collection
      Returns:
        an integer that is the index of the first matched object or -1 if no match was found
      Since:
        1.0

    - #### public static int findIndexOf(Object self, int startIndex, Closure closure)

      Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index of the first item that matches the condition specified in the closure.

      Parameters:
        `self` - the iteration object over which to iterate
        `startIndex` - start matching from this index
        `closure` - the filter to perform a match on the collection
      Returns:
        an integer that is the index of the first matched object or -1 if no match was found
      Since:
        1.5.0

    - #### public static List<Number> findIndexValues(Object self, Closure closure)

      Iterates over the elements of an iterable collection of items and returns the index values of the items that match the condition specified in the closure.

      Parameters:
        `self` - the iteration object over which to iterate
        `closure` - the filter to perform a match on the collection
      Returns:
        a list of numbers corresponding to the index values of all matched objects
      Since:
        1.5.2

    - #### public static List<Number> findIndexValues(Object self, Number startIndex, Closure closure)

      Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index values of the items that match the condition specified in the closure.

      Parameters:
        `self` - the iteration object over which to iterate
        `startIndex` - start matching from this index
        `closure` - the filter to perform a match on the collection
      Returns:
        a list of numbers corresponding to the index values of all matched objects
      Since:
        1.5.2

    - #### public static int findLastIndexOf(Object self, Closure closure)

      Iterates over the elements of an iterable collection of items and returns the index of the last item that matches the condition specified in the closure.

      Parameters:
        `self` - the iteration object over which to iterate
        `closure` - the filter to perform a match on the collection
      Returns:
        an integer that is the index of the last matched object or -1 if no match was found
      Since:
        1.5.2

    - #### public static int findLastIndexOf(Object self, int startIndex, Closure closure)

      Iterates over the elements of an iterable collection of items, starting from a specified startIndex, and returns the index of the last item that matches the condition specified in the closure.

      Parameters:
        `self` - the iteration object over which to iterate
        `startIndex` - start matching from this index
        `closure` - the filter to perform a match on the collection
      Returns:
        an integer that is the index of the last matched object or -1 if no match was found
      Since:
        1.5.2

    - #### public static Object findResult(Object self, Object defaultResult, Closure closure)

      Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns the defaultResult.

      Parameters:
        `self` - an Object with an iterator returning its values
        `defaultResult` - an Object that should be returned if all closure results are null
        `closure` - a closure that returns a non-null value when processing should stop
      Returns:
        the first non-null result of the closure, otherwise the default value
      Since:
        1.7.5

    - #### public static Object findResult(Object self, Closure closure)

      Treats the object as iterable, iterating through the values it represents and returns the first non-null result obtained from calling the closure, otherwise returns null.

      Parameters:
        `self` - an Object with an iterator returning its values
        `closure` - a closure that returns a non-null value when processing should stop
      Returns:
        the first non-null result of the closure
      Since:
        1.7.5

    - #### public static T findResult(Collection<E> self, U defaultResult, @ClosureParams(FirstParam.FirstGenericType.class) Closure<V> closure)

      Iterates through the collection calling the given closure for each item but stopping once the first non-null result is found and returning that result. If all are null, the defaultResult is returned.

      Examples:

           def list = [1,2,3]
           assert "Found 2" == list.findResult("default") { it > 1 ? "Found $it" : null }
           assert "default" == list.findResult("default") { it > 3 ? "Found $it" : null }

      Parameters:
        `self` - a Collection
        `defaultResult` - an Object that should be returned if all closure results are null
        `closure` - a closure that returns a non-null value when processing should stop and a value should be returned
      Returns:
        the first non-null result from calling the closure, or the defaultValue
      Since:
        1.7.5

    - #### public static T findResult(Collection<U> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<T> closure)

      Iterates through the collection calling the given closure for each item but stopping once the first non-null result is found and returning that result. If all results are null, null is returned.

      Example:

           def list = [1,2,3]
           assert "Found 2" == list.findResult { it > 1 ? "Found $it" : null }

      Parameters:
        `self` - a Collection
        `closure` - a closure that returns a non-null value when processing should stop and a value should be returned
      Returns:
        the first non-null result from calling the closure, or null
      Since:
        1.7.5

    - #### public static T findResult(Map<A, B> self, U defaultResult, @ClosureParams(MapEntryOrKeyValue.class) Closure<V> closure)

      Returns the first non-null closure result found by passing each map entry to the closure, otherwise the defaultResult is returned. If the closure takes two parameters, the entry key and value are passed. If the closure takes one parameter, the Map.Entry object is passed.

           assert "Found b:3" == [a:1, b:3].findResult("default") { if (it.value == 3) return "Found ${it.key}:${it.value}" }
           assert "default" == [a:1, b:3].findResult("default") { if (it.value == 9) return "Found ${it.key}:${it.value}" }
           assert "Found a:1" == [a:1, b:3].findResult("default") { k, v -> if (k.size() + v == 2) return "Found $k:$v" }

      Parameters:
        `self` - a Map
        `defaultResult` - an Object that should be returned if all closure results are null
        `closure` - a 1 or 2 arg Closure that returns a non-null value when processing should stop and a value should be returned
      Returns:
        the first non-null result collected by calling the closure, or the defaultResult if no such result was found
      Since:
        1.7.5

    - #### public static T findResult(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<T> closure)

      Returns the first non-null closure result found by passing each map entry to the closure, otherwise null is returned. If the closure takes two parameters, the entry key and value are passed. If the closure takes one parameter, the Map.Entry object is passed.

           assert "Found b:3" == [a:1, b:3].findResult { if (it.value == 3) return "Found ${it.key}:${it.value}" }
           assert null == [a:1, b:3].findResult { if (it.value == 9) return "Found ${it.key}:${it.value}" }
           assert "Found a:1" == [a:1, b:3].findResult { k, v -> if (k.size() + v == 2) return "Found $k:$v" }

      Parameters:
        `self` - a Map
        `closure` - a 1 or 2 arg Closure that returns a non-null value when processing should stop and a value should be returned
      Returns:
        the first non-null result collected by calling the closure, or null if no such result was found
      Since:
        1.7.5

    - #### @Deprecated public static Collection<T> findResults(Collection<U> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<T> filteringTransform)

      deprecated:
        Use the Iterable version of findResults instead
      See Also:
        findResults(Iterable, Closure)
      Since:
        1.8.1

    - #### public static Collection<T> findResults(Iterable<U> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<T> filteringTransform)

      Iterates through the Iterable transforming items using the supplied closure and collecting any non-null results.

      Example:

           def list = [1,2,3]
           def result = list.findResults { it > 1 ? "Found $it" : null }
           assert result == ["Found 2", "Found 3"]

      Parameters:
        `self` - an Iterable
        `filteringTransform` - a Closure that should return either a non-null transformed value or null for items which should be discarded
      Returns:
        the list of non-null transformed values
      Since:
        2.2.0

    - #### public static Collection<T> findResults(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<T> filteringTransform)

      Iterates through the map transforming items using the supplied closure and collecting any non-null results. If the closure takes two parameters, the entry key and value are passed. If the closure takes one parameter, the Map.Entry object is passed.

      Example:

           def map = [a:1, b:2, hi:2, cat:3, dog:2]
           def result = map.findResults { k, v -> k.size() == v ? "Found $k:$v" : null }
           assert result == ["Found a:1", "Found hi:2", "Found cat:3"]

      Parameters:
        `self` - a Map
        `filteringTransform` - a 1 or 2 arg Closure that should return either a non-null transformed value or null for items which should be discarded
      Returns:
        the list of non-null transformed values
      Since:
        1.8.1

    - #### public static T first(List<T> self)

      Returns the first item from the List.

           def list = [3, 4, 2]
           assert list.first() == 3
           // check original is unaltered
           assert list == [3, 4, 2]

      throws:
        NoSuchElementException if the list is empty and you try to access the first() item.
      Parameters:
        `self` - a List
      Returns:
        the first item from the List
      Since:
        1.5.5

    - #### public static T first(Iterable<T> self)

      Returns the first item from the Iterable.

           def set = [3, 4, 2] as LinkedHashSet
           assert set.first() == 3
           // check original is unaltered
           assert set == [3, 4, 2] as Set

      The first element returned by the Iterable's iterator is returned. If the Iterable doesn't guarantee a defined order it may appear like a random element is returned.
      throws:
        NoSuchElementException if the Iterable is empty and you try to access the first() item.
      Parameters:
        `self` - an Iterable
      Returns:
        the first item from the Iterable
      Since:
        1.8.7

    - #### public static T first(T[] self)

      Returns the first item from the array.

           def array = [3, 4, 2].toArray()
           assert array.first() == 3

      throws:
        NoSuchElementException if the array is empty and you try to access the first() item.
      Parameters:
        `self` - an array
      Returns:
        the first item from the array
      Since:
        1.7.3

    - #### public static Collection<?> flatten(Collection<?> self)

      Flatten a collection. This collection and any nested arrays or collections have their contents (recursively) added to the new collection.

          assert [1,2,3,4,5] == [1,[2,3],[[4]],[],5].flatten()

      Parameters:
        `self` - a Collection to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection<?> flatten(Iterable<?> self)

      Flatten an Iterable. This Iterable and any nested arrays or collections have their contents (recursively) added to the new collection.

          assert [1,2,3,4,5] == [1,[2,3],[[4]],[],5].flatten()

      Parameters:
        `self` - a Iterable to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(Object[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - an Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(boolean[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - a boolean Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(byte[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - a byte Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(char[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - a char Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(short[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - a short Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(int[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - an int Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(long[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - a long Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(float[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - a float Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection flatten(double[] self)

      Flatten an array. This array and any nested arrays or collections have their contents (recursively) added to the new collection.

      Parameters:
        `self` - a double Array to flatten
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection<T> flatten(Collection<T> self, Closure<? extends T> flattenUsing)

      Flatten a collection. This collection and any nested arrays or collections have their contents (recursively) added to the new collection. For any non-Array, non-Collection object which represents some sort of collective type, the supplied closure should yield the contained items; otherwise, the closure should just return any element which corresponds to a leaf.

      Parameters:
        `self` - a Collection
        `flattenUsing` - a closure to determine how to flatten non-Array, non-Collection elements
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static Collection<T> flatten(Iterable<T> self, Closure<? extends T> flattenUsing)

      Flatten an Iterable. This Iterable and any nested arrays or collections have their contents (recursively) added to the new collection. For any non-Array, non-Collection object which represents some sort of collective type, the supplied closure should yield the contained items; otherwise, the closure should just return any element which corresponds to a leaf.

      Parameters:
        `self` - an Iterable
        `flattenUsing` - a closure to determine how to flatten non-Array, non-Collection elements
      Returns:
        a flattened Collection
      Since:
        1.6.0

    - #### public static V get(Map<K, V> map, K key, V defaultValue)

      Looks up an item in a Map for the given key and returns the value - unless there is no entry for the given key in which case add the default value to the map and return that.

          def map=[:]
           map.get("a", []) << 5
           assert map == [a:[5]]

      Parameters:
        `map` - a Map
        `key` - the key to lookup the value of
        `defaultValue` - the value to return and add to the map for this key if there is no entry for the given key
      Returns:
        the value of the given key or the default value, added to the map if the key did not exist
      Since:
        1.0

    - #### public static Object getAt(Object self, String property)

      Allows the subscript operator to be used to lookup dynamic property values. `bean[somePropertyNameExpression]`. The normal property notation of groovy is neater and more concise but only works with compile-time known property names.

      Parameters:
        `self` - the object to act upon
        `property` - the property name of interest
      Returns:
        the property value
      Since:
        1.0

    - #### public static List<T> getAt(List<T> self, Range range)

      Support the range subscript operator for a List.

          def list = [1, "a", 4.5, true]
           assert list[1..2] == ["a", 4.5]

      Parameters:
        `self` - a List
        `range` - a Range indicating the items to get
      Returns:
        a new list instance based on range borders
      Since:
        1.0

    - #### public static List<T> getAt(ListWithDefault<T> self, Collection indices)

      Select a List of items from an eager or lazy List using a Collection to identify the indices to be selected.

          def list = [].withDefault { 42 }
           assert list[1,0,2] == [42, 42, 42]

      Parameters:
        `self` - a ListWithDefault
        `indices` - a Collection of indices
      Returns:
        a new eager or lazy list of the values at the given indices

    - #### public static List<T> getAt(ListWithDefault<T> self, Range range)

      Support the range subscript operator for an eager or lazy List.

          def list = [].withDefault { 42 }
           assert list[1..2] == [null, 42]

      Parameters:
        `self` - a ListWithDefault
        `range` - a Range indicating the items to get
      Returns:
        a new eager or lazy list instance based on range borders

    - #### public static List<T> getAt(ListWithDefault<T> self, EmptyRange range)

      Support the range subscript operator for an eager or lazy List.

          def list = [true, 1, 3.4].withDefault{ 42 }
           assert list[0..<0] == []

      Parameters:
        `self` - a ListWithDefault
        `range` - a Range indicating the items to get
      Returns:
        a new list instance based on range borders

    - #### public static List<T> getAt(List<T> self, EmptyRange range)

      Support the range subscript operator for a List.

          def list = [true, 1, 3.4]
           assert list[0..<0] == []

      Parameters:
        `self` - a List
        `range` - a Range indicating the items to get
      Returns:
        a new list instance based on range borders
      Since:
        1.0

    - #### public static List<T> getAt(List<T> self, Collection indices)

      Select a List of items from a List using a Collection to identify the indices to be selected.

          def list = [true, 1, 3.4, false]
           assert list[1,0,2] == [1, true, 3.4]

      Parameters:
        `self` - a List
        `indices` - a Collection of indices
      Returns:
        a new list of the values at the given indices
      Since:
        1.0

    - #### public static List<T> getAt(T[] self, Collection indices)

      Select a List of items from an Object array using a Collection to identify the indices to be selected.

      Parameters:
        `self` - an Array of Objects
        `indices` - a Collection of indices
      Returns:
        a new list of the values at the given indices
      Since:
        1.0

    - #### public static List<T> getAt(T[] array, Range range)

      Support the range subscript operator for an Array

      Parameters:
        `array` - an Array of Objects
        `range` - a Range
      Returns:
        a range of a list from the range's from index up to but not including the range's to value
      Since:
        1.0

    - #### public static List<T> getAt(T[] array, IntRange range)

      Parameters:
        `array` - an Array of Objects
        `range` - an IntRange
      Returns:
        a range of a list from the range's from index up to but not including the range's to value
      Since:
        1.0

    - #### public static List<T> getAt(T[] array, EmptyRange range)

      Parameters:
        `array` - an Array of Objects
        `range` - an EmptyRange
      Returns:
        an empty Range
      Since:
        1.5.0

    - #### public static List<T> getAt(T[] array, ObjectRange range)

      Parameters:
        `array` - an Array of Objects
        `range` - an ObjectRange
      Returns:
        a range of a list from the range's from index up to but not including the range's to value
      Since:
        1.0

    - #### public static T getAt(List<T> self, int idx)

      Support the subscript operator for a List.

          def list = [2, "a", 5.3]
           assert list[1] == "a"

      Parameters:
        `self` - a List
        `idx` - an index
      Returns:
        the value at the given index
      Since:
        1.0

    - #### public static T getAt(Iterator<T> self, int idx)

      Support the subscript operator for an Iterator. The iterator will be partially exhausted up until the idx entry after returning if a +ve or 0 idx is used, or fully exhausted if a -ve idx is used or no corresponding entry was found. Typical usage:

           def iter = [2, "a", 5.3].iterator()
           assert iter[1] == "a"

      A more elaborate example:

           def items = [2, "a", 5.3]
           def iter = items.iterator()
           assert iter[-1] == 5.3
           // iter exhausted, so reset
           iter = items.iterator()
           assert iter[1] == "a"
           // iter partially exhausted so now idx starts after "a"
           assert iter[0] == 5.3

      Parameters:
        `self` - an Iterator
        `idx` - an index value (-self.size() <= idx < self.size())
      Returns:
        the value at the given index (after normalisation) or null if no corresponding value was found
      Since:
        1.7.2

    - #### public static T getAt(Iterable<T> self, int idx)

      Support the subscript operator for an Iterable. Typical usage:

           // custom Iterable example:
           class MyIterable implements Iterable {
             Iterator iterator() { [1, 2, 3].iterator() }
           }
           def myIterable = new MyIterable()
           assert myIterable[1] == 2

           // Set example:
           def set = [1,2,3] as LinkedHashSet
           assert set[1] == 2

      Parameters:
        `self` - an Iterable
        `idx` - an index value (-self.size() <= idx < self.size()) but using -ve index values will be inefficient
      Returns:
        the value at the given index (after normalisation) or null if no corresponding value was found
      Since:
        2.1.0

    - #### public static V getAt(Map<K, V> self, K key)

      Support the subscript operator for a Map.

          def map = [a:10]
           assert map["a"] == 10

      Parameters:
        `self` - a Map
        `key` - an Object as a key for the map
      Returns:
        the value corresponding to the given key
      Since:
        1.0

    - #### public static List getAt(Collection coll, String property)

      Support the subscript operator for Collection.

           assert [String, Long, Integer] == ["a",5L,2]["class"]

      Parameters:
        `coll` - a Collection
        `property` - a String
      Returns:
        a List
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Byte> getAt(byte[] array, Range range)

      Support the subscript operator with a range for a byte array

      Parameters:
        `array` - a byte array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the retrieved bytes
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Character> getAt(char[] array, Range range)

      Support the subscript operator with a range for a char array

      Parameters:
        `array` - a char array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the retrieved chars
      Since:
        1.5.0

    - #### @SuppressWarnings("unchecked") public static List<Short> getAt(short[] array, Range range)

      Support the subscript operator with a range for a short array

      Parameters:
        `array` - a short array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the retrieved shorts
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Integer> getAt(int[] array, Range range)

      Support the subscript operator with a range for an int array

      Parameters:
        `array` - an int array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the ints at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Long> getAt(long[] array, Range range)

      Support the subscript operator with a range for a long array

      Parameters:
        `array` - a long array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the retrieved longs
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Float> getAt(float[] array, Range range)

      Support the subscript operator with a range for a float array

      Parameters:
        `array` - a float array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the retrieved floats
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Double> getAt(double[] array, Range range)

      Support the subscript operator with a range for a double array

      Parameters:
        `array` - a double array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the retrieved doubles
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Boolean> getAt(boolean[] array, Range range)

      Support the subscript operator with a range for a boolean array

      Parameters:
        `array` - a boolean array
        `range` - a range indicating the indices for the items to retrieve
      Returns:
        list of the retrieved booleans
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Byte> getAt(byte[] array, IntRange range)

      Support the subscript operator with an IntRange for a byte array

      Parameters:
        `array` - a byte array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved bytes
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Character> getAt(char[] array, IntRange range)

      Support the subscript operator with an IntRange for a char array

      Parameters:
        `array` - a char array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved chars
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Short> getAt(short[] array, IntRange range)

      Support the subscript operator with an IntRange for a short array

      Parameters:
        `array` - a short array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved shorts
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Integer> getAt(int[] array, IntRange range)

      Support the subscript operator with an IntRange for an int array

      Parameters:
        `array` - an int array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved ints
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Long> getAt(long[] array, IntRange range)

      Support the subscript operator with an IntRange for a long array

      Parameters:
        `array` - a long array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved longs
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Float> getAt(float[] array, IntRange range)

      Support the subscript operator with an IntRange for a float array

      Parameters:
        `array` - a float array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved floats
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Double> getAt(double[] array, IntRange range)

      Support the subscript operator with an IntRange for a double array

      Parameters:
        `array` - a double array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved doubles
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Boolean> getAt(boolean[] array, IntRange range)

      Support the subscript operator with an IntRange for a boolean array

      Parameters:
        `array` - a boolean array
        `range` - an IntRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved booleans
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Byte> getAt(byte[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for a byte array

      Parameters:
        `array` - a byte array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved bytes
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Character> getAt(char[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for a char array

      Parameters:
        `array` - a char array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved chars
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Short> getAt(short[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for a short array

      Parameters:
        `array` - a short array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved shorts
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Integer> getAt(int[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for an int array

      Parameters:
        `array` - an int array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved ints
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Long> getAt(long[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for a long array

      Parameters:
        `array` - a long array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved longs
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Float> getAt(float[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for a float array

      Parameters:
        `array` - a float array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved floats
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Double> getAt(double[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for a double array

      Parameters:
        `array` - a double array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved doubles
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Boolean> getAt(boolean[] array, ObjectRange range)

      Support the subscript operator with an ObjectRange for a byte array

      Parameters:
        `array` - a byte array
        `range` - an ObjectRange indicating the indices for the items to retrieve
      Returns:
        list of the retrieved bytes
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Byte> getAt(byte[] array, Collection indices)

      Support the subscript operator with a collection for a byte array

      Parameters:
        `array` - a byte array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the bytes at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Character> getAt(char[] array, Collection indices)

      Support the subscript operator with a collection for a char array

      Parameters:
        `array` - a char array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the chars at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Short> getAt(short[] array, Collection indices)

      Support the subscript operator with a collection for a short array

      Parameters:
        `array` - a short array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the shorts at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Integer> getAt(int[] array, Collection indices)

      Support the subscript operator with a collection for an int array

      Parameters:
        `array` - an int array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the ints at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Long> getAt(long[] array, Collection indices)

      Support the subscript operator with a collection for a long array

      Parameters:
        `array` - a long array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the longs at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Float> getAt(float[] array, Collection indices)

      Support the subscript operator with a collection for a float array

      Parameters:
        `array` - a float array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the floats at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Double> getAt(double[] array, Collection indices)

      Support the subscript operator with a collection for a double array

      Parameters:
        `array` - a double array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the doubles at the given indices
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Boolean> getAt(boolean[] array, Collection indices)

      Support the subscript operator with a collection for a boolean array

      Parameters:
        `array` - a boolean array
        `indices` - a collection of indices for the items to retrieve
      Returns:
        list of the booleans at the given indices
      Since:
        1.0

    - #### public static boolean getAt(BitSet self, int index)

      Support the subscript operator for a Bitset

      Parameters:
        `self` - a BitSet
        `index` - index to retrieve
      Returns:
        value of the bit at the given index
      See Also:
        BitSet
      Since:
        1.5.0

    - #### public static BitSet getAt(BitSet self, IntRange range)

      Support retrieving a subset of a BitSet using a Range

      Parameters:
        `self` - a BitSet
        `range` - a Range defining the desired subset
      Returns:
        a new BitSet that represents the requested subset
      See Also:
        BitSet
        IntRange
      Since:
        1.5.0

    - #### @Deprecated public static CharSequence getAt(CharSequence self, Collection indices)

    - #### @Deprecated public static CharSequence getAt(CharSequence text, EmptyRange range)

    - #### @Deprecated public static CharSequence getAt(CharSequence text, int index)

    - #### @Deprecated public static CharSequence getAt(CharSequence text, IntRange range)

    - #### @Deprecated public static CharSequence getAt(CharSequence text, Range range)

    - #### @Deprecated public static List getAt(Matcher self, Collection indices)

    - #### @Deprecated public static Object getAt(Matcher matcher, int idx)

    - #### @Deprecated public static String getAt(String self, Collection indices)

    - #### @Deprecated public static String getAt(String text, EmptyRange range)

    - #### @Deprecated public static String getAt(String text, int index)

    - #### @Deprecated public static String getAt(String text, IntRange range)

    - #### @Deprecated public static String getAt(String text, Range range)

    - #### @Deprecated public static byte[] getBytes(File file)

    - #### @Deprecated public static byte[] getBytes(URL url)

    - #### @Deprecated public static byte[] getBytes(InputStream is)

    - #### @Deprecated public static char[] getChars(CharSequence self)

    - #### @Deprecated public static char[] getChars(String self)

    - #### @Deprecated public static int getCount(Matcher matcher)

    - #### public static MetaClass getMetaClass(Class c)

      Adds a "metaClass" property to all class objects so you can use the syntax `String.metaClass.myMethod = { println "foo" }`

      Parameters:
        `c` - The java.lang.Class instance
      Returns:
        An MetaClass instance
      Since:
        1.5.0

    - #### public static MetaClass getMetaClass(Object obj)

      Obtains a MetaClass for an object either from the registry or in the case of a GroovyObject from the object itself.

      Parameters:
        `obj` - The object in question
      Returns:
        The MetaClass
      Since:
        1.5.0

    - #### public static MetaClass getMetaClass(GroovyObject obj)

      Obtains a MetaClass for an object either from the registry or in the case of a GroovyObject from the object itself.

      Parameters:
        `obj` - The object in question
      Returns:
        The MetaClass
      Since:
        1.6.0

    - #### public static List<PropertyValue> getMetaPropertyValues(Object self)

      Retrieves the list of MetaProperty objects for 'self' and wraps it in a list of PropertyValue objects that additionally provide the value for each property of 'self'.

      Parameters:
        `self` - the receiver object
      Returns:
        list of PropertyValue objects
      See Also:
        Expando.getMetaPropertyValues
      Since:
        1.0

    - #### public static Map getProperties(Object self)

      Convenience method that calls getMetaPropertyValues(java.lang.Object)(self) and provides the data in form of simple key/value pairs, i.e.&nsbp;without type() information.

      Parameters:
        `self` - the receiver object
      Returns:
        meta properties as Map of key/value pairs
      Since:
        1.0

    - #### public static ClassLoader getRootLoader(ClassLoader self)

      Iterates through the classloader parents until it finds a loader with a class named "org.codehaus.groovy.tools.RootLoader". If there is no such class `null` will be returned. The name is used for comparison because a direct comparison using == may fail as the class may be loaded through different classloaders.

      Parameters:
        `self` - a ClassLoader
      Returns:
        the rootLoader for the ClassLoader
      See Also:
        RootLoader
      Since:
        1.5.0

    - #### protected static List getSubList(List self, List splice)

    - #### @Deprecated public static String getText(File file, String charset)

    - #### @Deprecated public static String getText(File file)

    - #### @Deprecated public static String getText(URL url)

    - #### @Deprecated public static String getText(URL url, Map parameters)

    - #### @Deprecated public static String getText(URL url, String charset)

    - #### @Deprecated public static String getText(URL url, Map parameters, String charset)

    - #### @Deprecated public static String getText(InputStream is)

    - #### @Deprecated public static String getText(InputStream is, String charset)

    - #### @Deprecated public static String getText(Reader reader)

    - #### @Deprecated public static String getText(BufferedReader reader)

    - #### public static Collection grep(Object self, Object filter)

      Iterates over the collection of items which this Object represents and returns each item that matches the given filter - calling the `isCase(java.lang.Object, java.lang.Object)` method used by switch statements. This method can be used with different kinds of filters like regular expressions, classes, ranges etc. Example:

           def list = ['a', 'b', 'aa', 'bc', 3, 4.5]
           assert list.grep( ~/a+/ )  == ['a', 'aa']
           assert list.grep( ~/../ )  == ['aa', 'bc']
           assert list.grep( Number ) == [ 3, 4.5 ]
           assert list.grep{ it.toString().size() == 1 } == [ 'a', 'b', 3 ]

      Parameters:
        `self` - the object over which we iterate
        `filter` - the filter to perform on the object (using the isCase(java.lang.Object, java.lang.Object) method)
      Returns:
        a collection of objects which match the filter
      Since:
        1.5.6

    - #### public static Collection<T> grep(Collection<T> self, Object filter)

      Iterates over the collection of items and returns each item that matches the given filter - calling the `isCase(java.lang.Object, java.lang.Object)` method used by switch statements. This method can be used with different kinds of filters like regular expressions, classes, ranges etc. Example:

           def list = ['a', 'b', 'aa', 'bc', 3, 4.5]
           assert list.grep( ~/a+/ )  == ['a', 'aa']
           assert list.grep( ~/../ )  == ['aa', 'bc']
           assert list.grep( Number ) == [ 3, 4.5 ]
           assert list.grep{ it.toString().size() == 1 } == [ 'a', 'b', 3 ]

      Parameters:
        `self` - a collection
        `filter` - the filter to perform on each element of the collection (using the isCase(java.lang.Object, java.lang.Object) method)
      Returns:
        a collection of objects which match the filter
      Since:
        2.0

    - #### public static Collection<T> grep(T[] self, Object filter)

      Iterates over the array of items and returns a collection of items that match the given filter - calling the `isCase(java.lang.Object, java.lang.Object)` method used by switch statements. This method can be used with different kinds of filters like regular expressions, classes, ranges etc. Example:

           def list = ['a', 'b', 'aa', 'bc', 3, 4.5] as Object[]
           assert list.grep( ~/a+/ )  == ['a', 'aa']
           assert list.grep( ~/../ )  == ['aa', 'bc']
           assert list.grep( Number ) == [ 3, 4.5 ]
           assert list.grep{ it.toString().size() == 1 } == [ 'a', 'b', 3 ]

      Parameters:
        `self` - an array
        `filter` - the filter to perform on each element of the array (using the isCase(java.lang.Object, java.lang.Object) method)
      Returns:
        a collection of objects which match the filter
      Since:
        2.0

    - #### public static Collection grep(Object self)

      Iterates over the collection of items which this Object represents and returns each item that matches using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth.

      Example:

           def items = [1, 2, 0, false, true, '', 'foo', [], [4, 5], null]
           assert items.grep() == [1, 2, true, 'foo', [4, 5]]

      Parameters:
        `self` - the object over which we iterate
      Returns:
        a collection of objects which match the filter
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### @SuppressWarnings("unchecked") public static Collection<T> grep(Collection<T> self)

      Iterates over the collection returning each element that matches using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth.

      Example:

           def items = [1, 2, 0, false, true, '', 'foo', [], [4, 5], null]
           assert items.grep() == [1, 2, true, 'foo', [4, 5]]

      Parameters:
        `self` - a Collection
      Returns:
        a collection of elements satisfy Groovy truth
      See Also:
        Closure.IDENTITY
      Since:
        2.0

    - #### @SuppressWarnings("unchecked") public static Collection<T> grep(T[] self)

      Iterates over the array returning each element that matches using the IDENTITY Closure as a filter - effectively returning all elements which satisfy Groovy truth.

      Example:

           def items = [1, 2, 0, false, true, '', 'foo', [], [4, 5], null] as Object[]
           assert items.grep() == [1, 2, true, 'foo', [4, 5]]

      Parameters:
        `self` - an array
      Returns:
        a collection of elements which satisfy Groovy truth
      See Also:
        Closure.IDENTITY
      Since:
        2.0

    - #### protected static void groupAnswer(Map<K, List<T>> answer, T element, K value)

      Groups the current element according to the value

      Parameters:
        `answer` - the map containing the results
        `element` - the element to be placed
        `value` - the value according to which the element will be placed
      Since:
        1.5.0

    - #### @Deprecated public static Map<K, List<T>> groupBy(Collection<T> self, Closure<K> closure)

      deprecated:
        Use the Iterable version of groupBy instead
      See Also:
        groupBy(Iterable, Closure)
      Since:
        1.0

    - #### public static Map<K, List<T>> groupBy(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<K> closure)

      Sorts all Iterable members into groups determined by the supplied mapping closure. The closure should return the key that this item should be grouped by. The returned LinkedHashMap will have an entry for each distinct key returned from the closure, with each value being a list of items for that group.

      Example usage:

           assert [0:[2,4,6], 1:[1,3,5]] == [1,2,3,4,5,6].groupBy { it % 2 }

      Parameters:
        `self` - a collection to group
        `closure` - a closure mapping entries on keys
      Returns:
        a new Map grouped by keys
      Since:
        2.2.0

    - #### public static Map<K, List<T>> groupBy(T[] self, @ClosureParams(FirstParam.Component.class) Closure<K> closure)

      Sorts all array members into groups determined by the supplied mapping closure. The closure should return the key that this item should be grouped by. The returned LinkedHashMap will have an entry for each distinct key returned from the closure, with each value being a list of items for that group.

      Example usage:

           Integer[] items = [1,2,3,4,5,6]
           assert [0:[2,4,6], 1:[1,3,5]] == items.groupBy { it % 2 }

      Parameters:
        `self` - an array to group
        `closure` - a closure mapping entries on keys
      Returns:
        a new Map grouped by keys
      See Also:
        groupBy(Iterable, Closure)
      Since:
        2.2.0

    - #### @Deprecated public static Map groupBy(Collection self, Object... closures)

      deprecated:
        Use the Iterable version of groupBy instead
      See Also:
        groupBy(Iterable, Object...)
      Since:
        1.8.1

    - #### public static Map groupBy(Iterable self, Object... closures)

      Sorts all Iterable members into (sub)groups determined by the supplied mapping closures. Each closure should return the key that this item should be grouped by. The returned LinkedHashMap will have an entry for each distinct 'key path' returned from the closures, with each value being a list of items for that 'group path'. Example usage:

          def result = [1,2,3,4,5,6].groupBy({ it % 2 }, { it < 4 })
           assert result == [1:[(true):[1, 3], (false):[5]], 0:[(true):[2], (false):[4, 6]]]

      Another example:

          def sql = groovy.sql.Sql.newInstance(/* ... */)
           def data = sql.rows("SELECT * FROM a_table").groupBy({ it.column1 }, { it.column2 }, { it.column3 })
           if (data.val1.val2.val3) {
               // there exists a record where:
               //   a_table.column1 == val1
               //   a_table.column2 == val2, and
               //   a_table.column3 == val3
           } else {
               // there is no such record
           }

      If an empty array of closures is supplied the IDENTITY Closure will be used.
      Parameters:
        `self` - a collection to group
        `closures` - an array of closures, each mapping entries on keys
      Returns:
        a new Map grouped by keys on each criterion
      See Also:
        Closure.IDENTITY
      Since:
        2.2.0

    - #### public static Map groupBy(Object[] self, Object... closures)

      Sorts all array members into (sub)groups determined by the supplied mapping closures as per the Iterable variant of this method.

      Parameters:
        `self` - an array to group
        `closures` - an array of closures, each mapping entries on keys
      Returns:
        a new Map grouped by keys on each criterion
      See Also:
        groupBy(Iterable, Object...)
        Closure.IDENTITY
      Since:
        2.2.0

    - #### public static Map groupBy(Collection self, List<Closure> closures)

      Sorts all collection members into (sub)groups determined by the supplied mapping closures. Each closure should return the key that this item should be grouped by. The returned LinkedHashMap will have an entry for each distinct 'key path' returned from the closures, with each value being a list of items for that 'group path'. Example usage:

          def result = [1,2,3,4,5,6].groupBy([{ it % 2 }, { it < 4 }])
           assert result == [1:[(true):[1, 3], (false):[5]], 0:[(true):[2], (false):[4, 6]]]

      Another example:

          def sql = groovy.sql.Sql.newInstance(/* ... */)
           def data = sql.rows("SELECT * FROM a_table").groupBy([{ it.column1 }, { it.column2 }, { it.column3 }])
           if (data.val1.val2.val3) {
               // there exists a record where:
               //   a_table.column1 == val1
               //   a_table.column2 == val2, and
               //   a_table.column3 == val3
           } else {
               // there is no such record
           }

      If an empty list of closures is supplied the IDENTITY Closure will be used.
      Parameters:
        `self` - a collection to group
        `closures` - a list of closures, each mapping entries on keys
      Returns:
        a new Map grouped by keys on each criterion
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### public static Map groupBy(Iterable self, List<Closure> closures)

      Sorts all Iterable members into (sub)groups determined by the supplied mapping closures. Each closure should return the key that this item should be grouped by. The returned LinkedHashMap will have an entry for each distinct 'key path' returned from the closures, with each value being a list of items for that 'group path'. Example usage:

           def result = [1,2,3,4,5,6].groupBy([{ it % 2 }, { it < 4 }])
           assert result == [1:[(true):[1, 3], (false):[5]], 0:[(true):[2], (false):[4, 6]]]

      Another example:

           def sql = groovy.sql.Sql.newInstance(/* ... */)
           def data = sql.rows("SELECT * FROM a_table").groupBy([{ it.column1 }, { it.column2 }, { it.column3 }])
           if (data.val1.val2.val3) {
               // there exists a record where:
               //   a_table.column1 == val1
               //   a_table.column2 == val2, and
               //   a_table.column3 == val3
           } else {
               // there is no such record
           }

      If an empty list of closures is supplied the IDENTITY Closure will be used.
      Parameters:
        `self` - a collection to group
        `closures` - a list of closures, each mapping entries on keys
      Returns:
        a new Map grouped by keys on each criterion
      See Also:
        Closure.IDENTITY
      Since:
        2.2.0

    - #### public static Map groupBy(Object[] self, List<Closure> closures)

      Sorts all array members into (sub)groups determined by the supplied mapping closures as per the list variant of this method.

      Parameters:
        `self` - an array to group
        `closures` - a list of closures, each mapping entries on keys
      Returns:
        a new Map grouped by keys on each criterion
      See Also:
        Closure.IDENTITY
        groupBy(Iterable, List)
      Since:
        2.2.0

    - #### public static Map<G, Map<K, V>> groupBy(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<G> closure)

      Groups the members of a map into sub maps determined by the supplied mapping closure. The closure will be passed a Map.Entry or key and value (depending on the number of parameters the closure accepts) and should return the key that each item should be grouped under. The resulting map will have an entry for each 'group' key returned by the closure, with values being the map members from the original map that belong to each group. (If instead of a map, you want a list of map entries use {code}groupEntriesBy{code}.)

      If the `self` map is one of TreeMap, Hashtable or Properties, the returned Map will preserve that type, otherwise a LinkedHashMap will be returned.

          def result = [a:1,b:2,c:3,d:4,e:5,f:6].groupBy { it.value % 2 }
           assert result == [0:[b:2, d:4, f:6], 1:[a:1, c:3, e:5]]

      Parameters:
        `self` - a map to group
        `closure` - a closure mapping entries on keys
      Returns:
        a new Map grouped by keys
      Since:
        1.0

    - #### public static Map<Object, Map> groupBy(Map self, Object... closures)

      Groups the members of a map into sub maps determined by the supplied mapping closures. Each closure will be passed a Map.Entry or key and value (depending on the number of parameters the closure accepts) and should return the key that each item should be grouped under. The resulting map will have an entry for each 'group path' returned by all closures, with values being the map members from the original map that belong to each such 'group path'. If the `self` map is one of TreeMap, Hashtable, or Properties, the returned Map will preserve that type, otherwise a LinkedHashMap will be returned.

          def result = [a:1,b:2,c:3,d:4,e:5,f:6].groupBy({ it.value % 2 }, { it.key.next() })
           assert result == [1:[b:[a:1], d:[c:3], f:[e:5]], 0:[c:[b:2], e:[d:4], g:[f:6]]]

      If an empty array of closures is supplied the IDENTITY Closure will be used.
      Parameters:
        `self` - a map to group
        `closures` - an array of closures that map entries on keys
      Returns:
        a new map grouped by keys on each criterion
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### public static Map<Object, Map> groupBy(Map self, List<Closure> closures)

      Groups the members of a map into sub maps determined by the supplied mapping closures. Each closure will be passed a Map.Entry or key and value (depending on the number of parameters the closure accepts) and should return the key that each item should be grouped under. The resulting map will have an entry for each 'group path' returned by all closures, with values being the map members from the original map that belong to each such 'group path'. If the `self` map is one of TreeMap, Hashtable, or Properties, the returned Map will preserve that type, otherwise a LinkedHashMap will be returned.

          def result = [a:1,b:2,c:3,d:4,e:5,f:6].groupBy([{ it.value % 2 }, { it.key.next() }])
           assert result == [1:[b:[a:1], d:[c:3], f:[e:5]], 0:[c:[b:2], e:[d:4], g:[f:6]]]

      If an empty list of closures is supplied the IDENTITY Closure will be used.
      Parameters:
        `self` - a map to group
        `closures` - a list of closures that map entries on keys
      Returns:
        a new map grouped by keys on each criterion
      See Also:
        Closure.IDENTITY
      Since:
        1.8.1

    - #### public static Map<G, List<Map.Entry<K, V>>> groupEntriesBy(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<G> closure)

      Groups all map entries into groups determined by the supplied mapping closure. The closure will be passed a Map.Entry or key and value (depending on the number of parameters the closure accepts) and should return the key that each item should be grouped under. The resulting map will have an entry for each 'group' key returned by the closure, with values being the list of map entries that belong to each group. (If instead of a list of map entries, you want an actual map use {code}groupBy{code}.)

          def result = [a:1,b:2,c:3,d:4,e:5,f:6].groupEntriesBy { it.value % 2 }
           assert result[0]*.key == ["b", "d", "f"]
           assert result[1]*.value == [1, 3, 5]

      Parameters:
        `self` - a map to group
        `closure` - a 1 or 2 arg Closure mapping entries on keys
      Returns:
        a new Map grouped by keys
      Since:
        1.5.2

    - #### @Deprecated public static boolean hasGroup(Matcher matcher)

    - #### public static MetaProperty hasProperty(Object self, String name)

      Returns true of the implementing MetaClass has a property of the given name

      Note that this method will only return true for realised properties and does not take into account implementation of getProperty or propertyMissing

      Parameters:
        `self` - The object to inspect
        `name` - The name of the property of interest
      Returns:
        The found MetaProperty or null if it doesn't exist
      See Also:
        MetaObjectProtocol.hasProperty
      Since:
        1.6.1

    - #### public static T head(List<T> self)

      Returns the first item from the List.

          def list = [3, 4, 2]
           assert list.head() == 3
           assert list == [3, 4, 2]

      throws:
        NoSuchElementException if the list is empty and you try to access the head() item.
      Parameters:
        `self` - a List
      Returns:
        the first item from the List
      Since:
        1.5.5

    - #### public static T head(T[] self)

      Returns the first item from the Object array.

          def array = [3, 4, 2].toArray()
           assert array.head() == 3

      throws:
        NoSuchElementException if the array is empty and you try to access the head() item.
      Parameters:
        `self` - an Object array
      Returns:
        the first item from the Object array
      Since:
        1.7.3

    - #### public static T identity(Object self, Closure<T> closure)

      Allows the closure to be called for the object reference self. Synonym for 'with()'.

      Parameters:
        `self` - the object to have a closure act upon
        `closure` - the closure to call on the object
      Returns:
        result of calling the closure
      Since:
        1.0

    - #### public static Boolean implies(Boolean left, Boolean right)

      Logical implication of two boolean operators

      Parameters:
        `left` - left operator
        `right` - right operator
      Returns:
        result of logical implication
      Since:
        1.8.3

    - #### public static T inject(Collection<T> self, @ClosureParams(value=FromString.class,options="V,T") Closure<V> closure)

      Performs the same function as the version of inject that takes an initial value, but uses the head of the Collection as the initial value, and iterates over the tail.

           assert 1 * 2 * 3 * 4 == [ 1, 2, 3, 4 ].inject { acc, val -> acc * val }
           assert ['b'] == [['a','b'], ['b','c'], ['d','b']].inject { acc, val -> acc.intersect( val ) }
           LinkedHashSet set = [ 't', 'i', 'm' ]
           assert 'tim' == set.inject { a, b -> a + b }

      throws:
        NoSuchElementException if the collection is empty.
      Parameters:
        `self` - a Collection
        `closure` - a closure
      Returns:
        the result of the last closure call
      See Also:
        inject(Collection, Object, Closure)
      Since:
        1.8.7

    - #### public static T inject(Collection<E> self, U initialValue, @ClosureParams(value=FromString.class,options="U,E") Closure<V> closure)

      Iterates through the given Collection, passing in the initial value to the 2-arg closure along with the first item. The result is passed back (injected) into the closure along with the second item. The new result is injected back into the closure along with the third item and so on until the entire collection has been used. Also known as `foldLeft` or `reduce` in functional parlance. Examples:

           assert 1*1*2*3*4 == [1,2,3,4].inject(1) { acc, val -> acc * val }

           assert 0+1+2+3+4 == [1,2,3,4].inject(0) { acc, val -> acc + val }

           assert 'The quick brown fox' ==
               ['quick', 'brown', 'fox'].inject('The') { acc, val -> acc + ' ' + val }

           assert 'bat' ==
               ['rat', 'bat', 'cat'].inject('zzz') { min, next -> next < min ? next : min }

           def max = { a, b -> [a, b].max() }
           def animals = ['bat', 'rat', 'cat']
           assert 'rat' == animals.inject('aaa', max)

      Visual representation of the last example above:

              initVal  animals[0]
                 v        v
           max('aaa',   'bat')  =>  'bat'  animals[1]
                                      v       v
                                max('bat',  'rat')  =>  'rat'  animals[2]
                                                          v       v
                                                    max('rat',  'cat')  =>  'rat'

      Parameters:
        `self` - a Collection
        `initialValue` - some initial value
        `closure` - a closure
      Returns:
        the result of the last closure call
      Since:
        1.0

    - #### public static T inject(Map<Key, Value> self, U initialValue, @ClosureParams(value=FromString.class,options={"U,Map.Entry","U,Key,Value"}) Closure<V> closure)

      Iterates through the given Map, passing in the initial value to the 2-arg Closure along with the first item (or 3-arg Closure along with the first key and value). The result is passed back (injected) into the closure along with the second item. The new result is injected back into the closure along with the third item and so on until the entire collection has been used. Also known as `foldLeft` or `reduce` in functional parlance. Examples:

           def map = [a:1, b:2, c:3]
           assert map.inject([]) { list, k, v ->
             list + [k] * v
           } == ['a', 'b', 'b', 'c', 'c', 'c']

      Parameters:
        `self` - a Map
        `initialValue` - some initial value
        `closure` - a 2 or 3 arg Closure
      Returns:
        the result of the last closure call
      Since:
        1.8.1

    - #### public static T inject(Iterator<E> self, U initialValue, @ClosureParams(value=FromString.class,options="U,E") Closure<V> closure)

      Iterates through the given Iterator, passing in the initial value to the closure along with the first item. The result is passed back (injected) into the closure along with the second item. The new result is injected back into the closure along with the third item and so on until the Iterator has been expired of values. Also known as foldLeft in functional parlance.

      Parameters:
        `self` - an Iterator
        `initialValue` - some initial value
        `closure` - a closure
      Returns:
        the result of the last closure call
      See Also:
        inject(Collection, Object, Closure)
      Since:
        1.5.0

    - #### public static T inject(Object self, Closure<V> closure)

      Iterates through the given Object, passing in the first value to the closure along with the first item. The result is passed back (injected) into the closure along with the second item. The new result is injected back into the closure along with the third item and so on until further iteration of the object is not possible. Also known as foldLeft in functional parlance.

      throws:
        NoSuchElementException if the collection is empty.
      Parameters:
        `self` - an Object
        `closure` - a closure
      Returns:
        the result of the last closure call
      See Also:
        inject(Collection, Object, Closure)
      Since:
        1.8.7

    - #### public static T inject(Object self, U initialValue, Closure<V> closure)

      Iterates through the given Object, passing in the initial value to the closure along with the first item. The result is passed back (injected) into the closure along with the second item. The new result is injected back into the closure along with the third item and so on until further iteration of the object is not possible. Also known as foldLeft in functional parlance.

      Parameters:
        `self` - an Object
        `initialValue` - some initial value
        `closure` - a closure
      Returns:
        the result of the last closure call
      See Also:
        inject(Collection, Object, Closure)
      Since:
        1.5.0

    - #### public static T inject(E[] self, @ClosureParams(value=FromString.class,options="E,E") Closure<V> closure)

      Iterates through the given array as with inject(Object[],initialValue,closure), but using the first element of the array as the initialValue, and then iterating the remaining elements of the array.

      throws:
        NoSuchElementException if the array is empty.
      Parameters:
        `self` - an Object[]
        `closure` - a closure
      Returns:
        the result of the last closure call
      See Also:
        inject(Object[], Object, Closure)
      Since:
        1.8.7

    - #### public static T inject(E[] self, U initialValue, @ClosureParams(value=FromString.class,options="U,E") Closure<V> closure)

      Iterates through the given array, passing in the initial value to the closure along with the first item. The result is passed back (injected) into the closure along with the second item. The new result is injected back into the closure along with the third item and so on until all elements of the array have been used. Also known as foldLeft in functional parlance.

      Parameters:
        `self` - an Object[]
        `initialValue` - some initial value
        `closure` - a closure
      Returns:
        the result of the last closure call
      See Also:
        inject(Collection, Object, Closure)
      Since:
        1.5.0

    - #### public static String inspect(Object self)

      Inspects returns the String that matches what would be typed into a terminal to create this object.

      Parameters:
        `self` - any Object
      Returns:
        a String that matches what would be typed into a terminal to create this object. e.g. [1, 'hello'].inspect() -> [1, "hello"]
      Since:
        1.0

    - #### public static Number intdiv(Character left, Number right)

      Integer Divide a Character by a Number. The ordinal value of the Character is used in the division (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - a Number
      Returns:
        a Number (an Integer) resulting from the integer division operation
      Since:
        1.0

    - #### public static Number intdiv(Number left, Character right)

      Integer Divide a Number by a Character. The ordinal value of the Character is used in the division (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Number
        `right` - a Character
      Returns:
        a Number (an Integer) resulting from the integer division operation
      Since:
        1.0

    - #### public static Number intdiv(Character left, Character right)

      Integer Divide two Characters. The ordinal values of the Characters are used in the division (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - another Character
      Returns:
        a Number (an Integer) resulting from the integer division operation
      Since:
        1.0

    - #### public static Number intdiv(Number left, Number right)

      Integer Divide two Numbers.

      Parameters:
        `left` - a Number
        `right` - another Number
      Returns:
        a Number (an Integer) resulting from the integer division operation
      Since:
        1.0

    - #### public static Collection<T> intersect(Collection<T> left, Collection<T> right)

      Create a Collection composed of the intersection of both collections. Any elements that exist in both collections are added to the resultant collection.

          assert [4,5] == [1,2,3,4,5].intersect([4,5,6,7,8])

      Parameters:
        `left` - a Collection
        `right` - a Collection
      Returns:
        a Collection as an intersection of both collections
      Since:
        1.5.6

    - #### public static Map<K, V> intersect(Map<K, V> left, Map<K, V> right)

      Create a Map composed of the intersection of both maps. Any entries that exist in both maps are added to the resultant map.

          assert [4:4,5:5] == [1:1,2:2,3:3,4:4,5:5].intersect([4:4,5:5,6:6,7:7,8:8])

          assert [1: 1, 2: 2, 3: 3, 4: 4].intersect( [1: 1.0, 2: 2, 5: 5] ) == [1:1, 2:2]

      Parameters:
        `left` - a map
        `right` - a map
      Returns:
        a Map as an intersection of both maps
      Since:
        1.7.4

    - #### public static Object invokeMethod(Object object, String method, Object arguments)

      Provide a dynamic method invocation method which can be overloaded in classes to implement dynamic proxies easily.

      Parameters:
        `object` - any Object
        `method` - the name of the method to call
        `arguments` - the arguments to use
      Returns:
        the result of the method call
      Since:
        1.0

    - #### public static boolean is(Object self, Object other)

      Identity check. Since == is overridden in Groovy with the meaning of equality we need some fallback to check for object identity. Invoke using the 'is' method, like so: `def same = this.is(that)`

      Parameters:
        `self` - an object
        `other` - an object to compare identity with
      Returns:
        true if self and other are both references to the same instance, false otherwise
      Since:
        1.0

    - #### @Deprecated public static boolean isAllWhitespace(CharSequence self)

    - #### @Deprecated public static boolean isAllWhitespace(String self)

    - #### @Deprecated public static boolean isBigDecimal(CharSequence self)

    - #### @Deprecated public static boolean isBigDecimal(String self)

    - #### @Deprecated public static boolean isBigInteger(CharSequence self)

    - #### @Deprecated public static boolean isBigInteger(String self)

    - #### public static boolean isCase(Object caseValue, Object switchValue)

      Method for overloading the behavior of the 'case' method in switch statements. The default implementation handles arrays types but otherwise simply delegates to Object#equals, but this may be overridden for other types. In this example:

           switch( a ) {
             case b: //some code
           }

      "some code" is called when `b.isCase( a )` returns `true`.
      Parameters:
        `caseValue` - the case value
        `switchValue` - the switch value
      Returns:
        true if the switchValue is deemed to be equal to the caseValue
      Since:
        1.0

    - #### public static boolean isCase(Class caseValue, Object switchValue)

      Special 'Case' implementation for Class, which allows testing for a certain class in a switch statement. For example:

          switch( obj ) {
             case List :
               // obj is a list
               break;
             case Set :
               // etc
           }

      Parameters:
        `caseValue` - the case value
        `switchValue` - the switch value
      Returns:
        true if the switchValue is deemed to be assignable from the given class
      Since:
        1.0

    - #### public static boolean isCase(Collection caseValue, Object switchValue)

      'Case' implementation for collections which tests if the 'switch' operand is contained in any of the 'case' values. For example:

          switch( 3 ) {
             case [1,3,5]:
               assert true
               break
             default:
               assert false
           }

      Parameters:
        `caseValue` - the case value
        `switchValue` - the switch value
      Returns:
        true if the caseValue is deemed to contain the switchValue
      See Also:
        Collection.contains
      Since:
        1.0

    - #### public static boolean isCase(Map caseValue, Object switchValue)

      'Case' implementation for maps which tests the groovy truth value obtained using the 'switch' operand as key. For example:

          switch( 'foo' ) {
             case [foo:true, bar:false]:
               assert true
               break
             default:
               assert false
           }

      Parameters:
        `caseValue` - the case value
        `switchValue` - the switch value
      Returns:
        the groovy truth value from caseValue corresponding to the switchValue key
      Since:
        1.7.6

    - #### public static boolean isCase(Number caseValue, Number switchValue)

      Special 'case' implementation for all numbers, which delegates to the `compareTo()` method for comparing numbers of different types.

      Parameters:
        `caseValue` - the case value
        `switchValue` - the switch value
      Returns:
        true if the numbers are deemed equal
      Since:
        1.5.0

    - #### @Deprecated public static boolean isCase(CharSequence caseValue, Object switchValue)

    - #### @Deprecated public static boolean isCase(GString caseValue, Object switchValue)

    - #### @Deprecated public static boolean isCase(Pattern caseValue, Object switchValue)

    - #### @Deprecated public static boolean isCase(String caseValue, Object switchValue)

    - #### public static boolean isDigit(Character self)

      Determines if a character is a digit. Synonym for 'Character.isDigit(this)'.

      Parameters:
        `self` - a Character
      Returns:
        true if the character is a digit
      See Also:
        Character.isDigit
      Since:
        1.5.7

    - #### @Deprecated public static boolean isDouble(CharSequence self)

    - #### @Deprecated public static boolean isDouble(String self)

    - #### @Deprecated public static boolean isFloat(CharSequence self)

    - #### @Deprecated public static boolean isFloat(String self)

    - #### @Deprecated public static boolean isInteger(CharSequence self)

    - #### @Deprecated public static boolean isInteger(String self)

    - #### public static boolean isLetter(Character self)

      Determines if a character is a letter. Synonym for 'Character.isLetter(this)'.

      Parameters:
        `self` - a Character
      Returns:
        true if the character is a letter
      See Also:
        Character.isLetter
      Since:
        1.5.7

    - #### public static boolean isLetterOrDigit(Character self)

      Determines if a character is a letter or digit. Synonym for 'Character.isLetterOrDigit(this)'.

      Parameters:
        `self` - a Character
      Returns:
        true if the character is a letter or digit
      See Also:
        Character.isLetterOrDigit
      Since:
        1.5.7

    - #### @Deprecated public static boolean isLong(CharSequence self)

    - #### @Deprecated public static boolean isLong(String self)

    - #### public static boolean isLowerCase(Character self)

      Determine if a Character is lowercase. Synonym for 'Character.isLowerCase(this)'.

      Parameters:
        `self` - a Character
      Returns:
        true if the character is lowercase
      See Also:
        Character.isLowerCase
      Since:
        1.5.7

    - #### @Deprecated public static boolean isNumber(CharSequence self)

    - #### @Deprecated public static boolean isNumber(String self)

    - #### public static boolean isUpperCase(Character self)

      Determine if a Character is uppercase. Synonym for 'Character.isUpperCase(this)'.

      Parameters:
        `self` - a Character
      Returns:
        true if the character is uppercase
      See Also:
        Character.isUpperCase
      Since:
        1.5.7

    - #### public static boolean isWhitespace(Character self)

      Determines if a character is a whitespace character. Synonym for 'Character.isWhitespace(this)'.

      Parameters:
        `self` - a Character
      Returns:
        true if the character is a whitespace character
      See Also:
        Character.isWhitespace
      Since:
        1.5.7

    - #### public static Iterator<T> iterator(T[] a)

      Attempts to create an Iterator for the given object by first converting it to a Collection.

      Parameters:
        `a` - an array
      Returns:
        an Iterator for the given Array.
      See Also:
        DefaultTypeTransformation.asCollection
      Since:
        1.6.4

    - #### public static Iterator iterator(Object o)

      Attempts to create an Iterator for the given object by first converting it to a Collection.

      Parameters:
        `o` - an object
      Returns:
        an Iterator for the given Object.
      See Also:
        DefaultTypeTransformation.asCollection
      Since:
        1.0

    - #### public static Iterator<T> iterator(Enumeration<T> enumeration)

      Allows an Enumeration to behave like an Iterator. Note that the Iterator.remove method is unsupported since the underlying Enumeration does not provide a mechanism for removing items.

      Parameters:
        `enumeration` - an Enumeration object
      Returns:
        an Iterator for the given Enumeration
      Since:
        1.0

    - #### public static Iterator<T> iterator(Iterator<T> self)

      An identity function for iterators, supporting 'duck-typing' when trying to get an iterator for each object within a collection, some of which may already be iterators.

      Parameters:
        `self` - an iterator object
      Returns:
        itself
      Since:
        1.5.0

    - #### @Deprecated public static Iterator iterator(Matcher matcher)

    - #### @Deprecated public static Iterator<String> iterator(Reader self)

    - #### @Deprecated public static Iterator<Byte> iterator(InputStream self)

    - #### @Deprecated public static Iterator<Byte> iterator(DataInputStream self)

    - #### public static String join(Iterator<Object> self, String separator)

      Concatenates the `toString()` representation of each item from the iterator, with the given String as a separator between each item. The iterator will become exhausted of elements after determining the resulting conjoined value.

      Parameters:
        `self` - an Iterator of items
        `separator` - a String separator
      Returns:
        the joined String
      Since:
        1.5.5

    - #### @Deprecated public static String join(Collection self, String separator)

      deprecated:
        Use the Iterable version of join instead
      See Also:
        join(Iterable, String)
      Since:
        1.0

    - #### public static String join(Iterable self, String separator)

      Concatenates the `toString()` representation of each item in this Iterable, with the given String as a separator between each item.

          assert "1, 2, 3" == [1,2,3].join(", ")

      Parameters:
        `self` - an Iterable of objects
        `separator` - a String separator
      Returns:
        the joined String
      Since:
        1.0

    - #### public static String join(Object[] self, String separator)

      Concatenates the `toString()` representation of each items in this array, with the given String as a separator between each item.

      Parameters:
        `self` - an array of Object
        `separator` - a String separator
      Returns:
        the joined String
      Since:
        1.0

    - #### public static T last(List<T> self)

      Returns the last item from the List.

           def list = [3, 4, 2]
           assert list.last() == 2
           // check original is unaltered
           assert list == [3, 4, 2]

      throws:
        NoSuchElementException if the list is empty and you try to access the last() item.
      Parameters:
        `self` - a List
      Returns:
        the last item from the List
      Since:
        1.5.5

    - #### public static T last(Iterable<T> self)

      Returns the last item from the Iterable.

           def set = [3, 4, 2] as LinkedHashSet
           assert set.last() == 2
           // check original unaltered
           assert set == [3, 4, 2] as Set

      The first element returned by the Iterable's iterator is returned. If the Iterable doesn't guarantee a defined order it may appear like a random element is returned.
      throws:
        NoSuchElementException if the Iterable is empty and you try to access the last() item.
      Parameters:
        `self` - an Iterable
      Returns:
        the first item from the Iterable
      Since:
        1.8.7

    - #### public static T last(T[] self)

      Returns the last item from the array.

           def array = [3, 4, 2].toArray()
           assert array.last() == 2

      throws:
        NoSuchElementException if the array is empty and you try to access the last() item.
      Parameters:
        `self` - an array
      Returns:
        the last item from the array
      Since:
        1.7.3

    - #### public static Collection<T> leftShift(Collection<T> self, T value)

      Overloads the left shift operator to provide an easy way to append objects to a Collection.

          def list = [1,2]
           list << 3
           assert list == [1,2,3]

      Parameters:
        `self` - a Collection
        `value` - an Object to be added to the collection.
      Returns:
        same collection, after the value was added to it.
      Since:
        1.0

    - #### public static BlockingQueue<T> leftShift(BlockingQueue<T> self, T value)

      Overloads the left shift operator to provide an easy way to append objects to a BlockingQueue. In case of bounded queue the method will block till space in the queue become available

          def list = new java.util.concurrent.LinkedBlockingQueue ()
           list << 3 << 2 << 1
           assert list.iterator().collect{it} == [3,2,1]

      Parameters:
        `self` - a Collection
        `value` - an Object to be added to the collection.
      Returns:
        same collection, after the value was added to it.
      Since:
        1.7.1

    - #### public static Map<K, V> leftShift(Map<K, V> self, Map.Entry<K, V> entry)

      Overloads the left shift operator to provide an easy way to append Map.Entry values to a Map.

      Parameters:
        `self` - a Map
        `entry` - a Map.Entry to be added to the Map.
      Returns:
        same map, after the value has been added to it.
      Since:
        1.6.0

    - #### public static Map<K, V> leftShift(Map<K, V> self, Map<K, V> other)

      Overloads the left shift operator to provide an easy way to put one maps entries into another map. This allows the compact syntax `map1 << map2`; otherwise it's just a synonym for `putAll` though it returns the original map rather than being a `void` method. Example usage:

          def map = [a:1, b:2]
           map << [c:3, d:4]
           assert map == [a:1, b:2, c:3, d:4]

      Parameters:
        `self` - a Map
        `other` - another Map whose entries should be added to the original Map.
      Returns:
        same map, after the values have been added to it.
      Since:
        1.7.2

    - #### public static Number leftShift(Number self, Number operand)

      Implementation of the left shift operator for integral types. Non integral Number types throw UnsupportedOperationException.

      Parameters:
        `self` - a Number object
        `operand` - the shift distance by which to left shift the number
      Returns:
        the resulting number
      Since:
        1.5.0

    - #### @Deprecated public static StringBuilder leftShift(CharSequence self, Object value)

    - #### @Deprecated public static StringBuffer leftShift(String self, Object value)

    - #### @Deprecated public static StringBuffer leftShift(StringBuffer self, Object value)

    - #### @Deprecated public static StringBuilder leftShift(StringBuilder self, Object value)

    - #### @Deprecated public static Writer leftShift(Socket self, Object value)

    - #### @Deprecated public static OutputStream leftShift(Socket self, byte[] value)

    - #### @Deprecated public static Writer leftShift(Writer self, Object value)

    - #### @Deprecated public static Writer leftShift(OutputStream self, Object value)

    - #### @Deprecated public static void leftShift(ObjectOutputStream self, Object value)

    - #### @Deprecated public static OutputStream leftShift(OutputStream self, InputStream in)

    - #### @Deprecated public static OutputStream leftShift(OutputStream self, byte[] value)

    - #### @Deprecated public static File leftShift(File file, Object text)

    - #### @Deprecated public static File leftShift(File file, byte[] bytes)

    - #### @Deprecated public static File leftShift(File file, InputStream data)

    - #### @Deprecated public static boolean matches(CharSequence self, Pattern pattern)

    - #### @Deprecated public static boolean matches(String self, Pattern pattern)

    - #### public static Map.Entry<K, V> max(Map<K, V> self, @ClosureParams(value=FromString.class, options={"Map.Entry", "Map.Entry,Map.Entry"}) Closure closure)

      Selects an entry in the map having the maximum calculated value as determined by the supplied closure. If more than one entry has the maximum value, an arbitrary choice is made between the entries having the maximum value.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison. An example:

           def zoo = [monkeys:6, lions:5, tigers:7]
           def mostCommonEntry = zoo.max{ it.value }
           assert mostCommonEntry.value == 7
           def leastCommonEntry = zoo.max{ a, b -> b.value <=> a.value } // double negative!
           assert leastCommonEntry.value == 5

      Edge case for multiple max values:

           def zoo = [monkeys:6, lions:5, tigers:7]
           def lengthOfNamePlusNumber = { e -> e.key.size() + e.value }
           def ans = zoo.max(lengthOfNamePlusNumber) // one of [monkeys:6, tigers:7]
           assert lengthOfNamePlusNumber(ans) == 13

      Parameters:
        `self` - a Map
        `closure` - a 1 or 2 arg Closure used to determine the correct ordering
      Returns:
        the Map.Entry having the maximum value as determined by the closure
      Since:
        1.7.6

    - #### @Deprecated public static T max(Collection<T> self)

      deprecated:
        Use the Iterable version of max instead
      See Also:
        max(Iterable)
      Since:
        1.0

    - #### public static T max(Iterable<T> self)

      Adds max() method to Iterable objects.

           assert 5 == [2,3,1,5,4].max()

      Parameters:
        `self` - an Iterable
      Returns:
        the maximum value
      See Also:
        GroovyCollections.max
      Since:
        2.2.0

    - #### public static T max(Iterator<T> self)

      Adds max() method to Iterator objects. The iterator will become exhausted of elements after determining the maximum value.

      Parameters:
        `self` - an Iterator
      Returns:
        the maximum value
      See Also:
        GroovyCollections.max
      Since:
        1.5.5

    - #### public static T max(T[] self)

      Adds max() method to Object arrays.

      Parameters:
        `self` - an Object array
      Returns:
        the maximum value
      See Also:
        max(java.util.Collection)
      Since:
        1.5.5

    - #### @Deprecated public static T max(Collection<T> self, Closure closure)

      deprecated:
        Use the Iterable version of max instead
      See Also:
        max(Iterable, Closure)
      Since:
        1.0

    - #### public static T max(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Selects an item in the collection having the maximum value as determined by the supplied closure. If more than one item has the maximum value, an arbitrary choice is made between the items having the maximum value.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

          assert "hello" == ["hello","hi","hey"].max { it.length() }

          assert "hello" == ["hello","hi","hey"].max { a, b -> a.length() <=> b.length() }

           def pets = ['dog', 'elephant', 'anaconda']
           def longestName = pets.max{ it.size() } // one of 'elephant' or 'anaconda'
           assert longestName.size() == 8

      Parameters:
        `self` - an Iterable
        `closure` - a 1 or 2 arg Closure used to determine the correct ordering
      Returns:
        the maximum value
      Since:
        2.2.0

    - #### public static T max(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Selects the maximum value found from the Iterator using the closure to determine the correct ordering. The iterator will become exhausted of elements after this operation.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

      Parameters:
        `self` - an Iterator
        `closure` - a Closure used to determine the correct ordering
      Returns:
        the maximum value
      See Also:
        max(java.util.Collection, groovy.lang.Closure)
      Since:
        1.5.5

    - #### public static T max(T[] self, @ClosureParams(FirstParam.Component.class) Closure closure)

      Selects the maximum value found from the Object array using the closure to determine the correct ordering.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

      Parameters:
        `self` - an Object array
        `closure` - a Closure used to determine the correct ordering
      Returns:
        the maximum value
      See Also:
        max(java.util.Collection, groovy.lang.Closure)
      Since:
        1.5.5

    - #### @Deprecated public static T max(Collection<T> self, Comparator<T> comparator)

      deprecated:
        Use the Iterable version of max instead
      See Also:
        max(Iterable, Comparator)
      Since:
        1.0

    - #### public static T max(Iterable<T> self, Comparator<T> comparator)

      Selects the maximum value found in the Iterable using the given comparator.

           assert "hello" == ["hello","hi","hey"].max( { a, b -> a.length() <=> b.length() } as Comparator )

      Parameters:
        `self` - an Iterable
        `comparator` - a Comparator
      Returns:
        the maximum value
      Since:
        2.2.0

    - #### public static T max(Iterator<T> self, Comparator<T> comparator)

      Selects the maximum value found from the Iterator using the given comparator.

      Parameters:
        `self` - an Iterator
        `comparator` - a Comparator
      Returns:
        the maximum value
      Since:
        1.5.5

    - #### public static T max(T[] self, Comparator<T> comparator)

      Selects the maximum value found from the Object array using the given comparator.

      Parameters:
        `self` - an Object array
        `comparator` - a Comparator
      Returns:
        the maximum value
      Since:
        1.5.5

    - #### public static MetaClass metaClass(Class self, Closure closure)

      Sets/updates the metaclass for a given class to a closure.

      throws:
        GroovyRuntimeException if the metaclass can't be set for this class
      Parameters:
        `self` - the class whose metaclass we wish to update
        `closure` - the closure representing the new metaclass
      Returns:
        the new metaclass value
      Since:
        1.6.0

    - #### public static MetaClass metaClass(Object self, Closure closure)

      Sets/updates the metaclass for a given object to a closure.

      throws:
        GroovyRuntimeException if the metaclass can't be set for this object
      Parameters:
        `self` - the object whose metaclass we wish to update
        `closure` - the closure representing the new metaclass
      Returns:
        the new metaclass value
      Since:
        1.6.0

    - #### @Deprecated public static T min(Collection<T> self)

      deprecated:
        Use the Iterable version of min instead
      See Also:
        min(Iterable)
      Since:
        1.0

    - #### public static T min(Iterable<T> self)

      Adds min() method to Collection objects.

          assert 2 == [4,2,5].min()

      Parameters:
        `self` - a Collection
      Returns:
        the minimum value
      See Also:
        GroovyCollections.min
      Since:
        1.0

    - #### public static T min(Iterator<T> self)

      Adds min() method to Iterator objects. The iterator will become exhausted of elements after determining the minimum value.

      Parameters:
        `self` - an Iterator
      Returns:
        the minimum value
      See Also:
        min(java.util.Collection)
      Since:
        1.5.5

    - #### public static T min(T[] self)

      Adds min() method to Object arrays.

      Parameters:
        `self` - an Object array
      Returns:
        the minimum value
      See Also:
        min(java.util.Collection)
      Since:
        1.5.5

    - #### @Deprecated public static T min(Collection<T> self, Comparator<T> comparator)

      deprecated:
        Use the Iterable version of min instead
      See Also:
        min(Iterable, Comparator)
      Since:
        1.0

    - #### public static T min(Iterable<T> self, Comparator<T> comparator)

      Selects the minimum value found in the Iterable using the given comparator.

          assert "hi" == ["hello","hi","hey"].min( { a, b -> a.length() <=> b.length() } as Comparator )

      Parameters:
        `self` - an Iterable
        `comparator` - a Comparator
      Returns:
        the minimum value
      Since:
        2.2.0

    - #### public static T min(Iterator<T> self, Comparator<T> comparator)

      Selects the minimum value found from the Iterator using the given comparator.

      Parameters:
        `self` - an Iterator
        `comparator` - a Comparator
      Returns:
        the minimum value
      See Also:
        min(java.util.Collection, java.util.Comparator)
      Since:
        1.5.5

    - #### public static T min(T[] self, Comparator<T> comparator)

      Selects the minimum value found from the Object array using the given comparator.

      Parameters:
        `self` - an Object array
        `comparator` - a Comparator
      Returns:
        the minimum value
      See Also:
        min(java.util.Collection, java.util.Comparator)
      Since:
        1.5.5

    - #### @Deprecated public static T min(Collection<T> self, Closure closure)

      deprecated:
        Use the Iterable version of min instead
      See Also:
        min(Iterable, Closure)
      Since:
        1.0

    - #### public static T min(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Selects an item in the collection having the minimum value as determined by the supplied closure. If more than one item has the minimum value, an arbitrary choice is made between the items having the minimum value.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

           assert "hi" == ["hello","hi","hey"].min { it.length() }

           def lastDigit = { a, b -> a % 10 <=> b % 10 }
           assert [19, 55, 91].min(lastDigit) == 91

           def pets = ['dog', 'cat', 'anaconda']
           def shortestName = pets.min{ it.size() } // one of 'dog' or 'cat'
           assert shortestName.size() == 3

      Parameters:
        `self` - an Iterable
        `closure` - a 1 or 2 arg Closure used to determine the correct ordering
      Returns:
        the minimum value
      Since:
        1.0

    - #### public static Map.Entry<K, V> min(Map<K, V> self, @ClosureParams(value=FromString.class, options={"Map.Entry", "Map.Entry,Map.Entry"}) Closure closure)

      Selects an entry in the map having the minimum calculated value as determined by the supplied closure. If more than one entry has the minimum value, an arbitrary choice is made between the entries having the minimum value.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

           def zoo = [monkeys:6, lions:5, tigers:7]
           def leastCommonEntry = zoo.min{ it.value }
           assert leastCommonEntry.value == 5
           def mostCommonEntry = zoo.min{ a, b -> b.value <=> a.value } // double negative!
           assert mostCommonEntry.value == 7

      Edge case for multiple min values:

           def zoo = [monkeys:6, lions:5, tigers:7]
           def lastCharOfName = { e -> e.key[-1] }
           def ans = zoo.min(lastCharOfName) // some random entry
           assert lastCharOfName(ans) == 's'

      Parameters:
        `self` - a Map
        `closure` - a 1 or 2 arg Closure used to determine the correct ordering
      Returns:
        the Map.Entry having the minimum value as determined by the closure
      Since:
        1.7.6

    - #### public static T min(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Selects the minimum value found from the Iterator using the closure to determine the correct ordering. The iterator will become exhausted of elements after this operation.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

      Parameters:
        `self` - an Iterator
        `closure` - a Closure used to determine the correct ordering
      Returns:
        the minimum value
      See Also:
        min(java.util.Collection, groovy.lang.Closure)
      Since:
        1.5.5

    - #### public static T min(T[] self, @ClosureParams(FirstParam.Component.class) Closure closure)

      Selects the minimum value found from the Object array using the closure to determine the correct ordering.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

      Parameters:
        `self` - an Object array
        `closure` - a Closure used to determine the correct ordering
      Returns:
        the minimum value
      See Also:
        min(java.util.Collection, groovy.lang.Closure)
      Since:
        1.5.5

    - #### public static Set<T> minus(Set<T> self, Collection<?> removeMe)

      Create a Set composed of the elements of the first Set minus the elements of the given Collection.

      Parameters:
        `self` - a Set object
        `removeMe` - the items to remove from the Set
      Returns:
        the resulting Set
      Since:
        1.5.0

    - #### public static Set<T> minus(Set<T> self, Iterable<?> removeMe)

      Create a Set composed of the elements of the first Set minus the elements from the given Iterable.

      Parameters:
        `self` - a Set object
        `removeMe` - the items to remove from the Set
      Returns:
        the resulting Set
      Since:
        1.8.7

    - #### public static Set<T> minus(Set<T> self, Object removeMe)

      Create a Set composed of the elements of the first Set minus the given element.

      Parameters:
        `self` - a Set object
        `removeMe` - the element to remove from the Set
      Returns:
        the resulting Set
      Since:
        1.5.0

    - #### @SuppressWarnings("unchecked") public static T[] minus(T[] self, Iterable removeMe)

      Create an array composed of the elements of the first array minus the elements of the given Iterable.

      Parameters:
        `self` - an object array
        `removeMe` - a Collection of elements to remove
      Returns:
        an array with the supplied elements removed
      Since:
        1.5.5

    - #### @SuppressWarnings("unchecked") public static T[] minus(T[] self, Object[] removeMe)

      Create an array composed of the elements of the first array minus the elements of the given array.

      Parameters:
        `self` - an object array
        `removeMe` - an array of elements to remove
      Returns:
        an array with the supplied elements removed
      Since:
        1.5.5

    - #### public static List<T> minus(List<T> self, Collection<?> removeMe)

      Create a List composed of the elements of the first list minus every occurrence of elements of the given Collection.

          assert [1, "a", true, true, false, 5.3] - [true, 5.3] == [1, "a", false]

      Parameters:
        `self` - a List
        `removeMe` - a Collection of elements to remove
      Returns:
        a List with the given elements removed
      Since:
        1.0

    - #### public static List<T> minus(List<T> self, Iterable<?> removeMe)

      Create a List composed of the elements of the first list minus every occurrence of elements of the given Iterable.

           class AbcIterable implements Iterable {
               Iterator iterator() { "abc".iterator() }
           }
           assert "backtrack".toList() - new AbcIterable() == ["k", "t", "r", "k"]

      Parameters:
        `self` - a List
        `removeMe` - an Iterable of elements to remove
      Returns:
        a List with the supplied elements removed
      Since:
        1.8.7

    - #### public static List<T> minus(List<T> self, Object removeMe)

      Create a new List composed of the elements of the first list minus every occurrence of the given element to remove.

          assert ["a", 5, 5, true] - 5 == ["a", true]

      Parameters:
        `self` - a List object
        `removeMe` - an element to remove from the list
      Returns:
        the resulting List with the given element removed
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static T[] minus(T[] self, Object removeMe)

      Create a new object array composed of the elements of the first array minus the element to remove.

      Parameters:
        `self` - an object array
        `removeMe` - an element to remove from the array
      Returns:
        a new array with the operand removed
      Since:
        1.5.5

    - #### public static Map<K, V> minus(Map<K, V> self, Map removeMe)

      Create a Map composed of the entries of the first map minus the entries of the given map.

      Parameters:
        `self` - a map object
        `removeMe` - the entries to remove from the map
      Returns:
        the resulting map
      Since:
        1.7.4

    - #### public static Number minus(Character left, Number right)

      todo:
        maybe a double dispatch thing to handle new large numbers?

    - #### public static Number minus(Number left, Character right)

      Subtract a Character from a Number. The ordinal value of the Character is used in the subtraction (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Number
        `right` - a Character
      Returns:
        the Number corresponding to the subtraction of right from left
      Since:
        1.0

    - #### public static Number minus(Character left, Character right)

      Subtract one Character from another. The ordinal values of the Characters is used in the comparison (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - a Character
      Returns:
        the Number corresponding to the subtraction of right from left
      Since:
        1.0

    - #### @Deprecated public static CharSequence minus(CharSequence self, Object target)

    - #### @Deprecated public static String minus(String self, Object target)

    - #### public static void mixin(MetaClass self, List<Class> categoryClasses)

      Extend object with category methods. All methods for given class and all super classes will be added to the object.

      Parameters:
        `self` - any Class
        `categoryClasses` - a category classes to use
      Since:
        1.6.0

    - #### public static void mixin(Class self, List<Class> categoryClasses)

      Extend class globally with category methods. All methods for given class and all super classes will be added to the class.

      Parameters:
        `self` - any Class
        `categoryClasses` - a category classes to use
      Since:
        1.6.0

    - #### public static void mixin(Class self, Class categoryClass)

      Extend class globally with category methods.

      Parameters:
        `self` - any Class
        `categoryClass` - a category class to use
      Since:
        1.6.0

    - #### public static void mixin(Class self, Class[] categoryClass)

      Extend class globally with category methods.

      Parameters:
        `self` - any Class
        `categoryClass` - a category class to use
      Since:
        1.6.0

    - #### public static void mixin(MetaClass self, Class categoryClass)

      Extend class globally with category methods.

      Parameters:
        `self` - any Class
        `categoryClass` - a category class to use
      Since:
        1.6.0

    - #### public static void mixin(MetaClass self, Class[] categoryClass)

      Extend class globally with category methods.

      Parameters:
        `self` - any Class
        `categoryClass` - a category class to use
      Since:
        1.6.0

    - #### public static Number mod(Number left, Number right)

      Performs a division modulus operation. Called by the '%' operator.

      Parameters:
        `left` - a Number
        `right` - another Number to mod
      Returns:
        the modulus result
      Since:
        1.0

    - #### public static List<T> multiply(Collection<T> self, Number factor)

      Create a List composed of the elements of this list, repeated a certain number of times. Note that for non-primitive elements, multiple references to the same instance will be added.

          assert [1,2,3,1,2,3] == [1,2,3] * 2

      Parameters:
        `self` - a Collection
        `factor` - the number of times to append
      Returns:
        the multiplied list
      Since:
        1.0

    - #### public static Number multiply(Character left, Number right)

      Multiply a Character by a Number. The ordinal value of the Character is used in the multiplication (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - a Number
      Returns:
        the Number corresponding to the multiplication of left by right
      Since:
        1.0

    - #### public static Number multiply(Number left, Character right)

      Multiply a Number by a Character. The ordinal value of the Character is used in the multiplication (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Number
        `right` - a Character
      Returns:
        the multiplication of left by right
      Since:
        1.0

    - #### public static Number multiply(Character left, Character right)

      Multiply two Characters. The ordinal values of the Characters are used in the multiplication (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Character
        `right` - another Character
      Returns:
        the Number corresponding to the multiplication of left by right
      Since:
        1.0

    - #### public static Number multiply(BigDecimal left, Double right)

      Multiply a BigDecimal and a Double. Note: This method was added to enforce the Groovy rule of BigDecimal*Double == Double. Without this method, the multiply(BigDecimal) method in BigDecimal would respond and return a BigDecimal instead. Since BigDecimal is preferred over Number, the Number*Number method is not chosen as in older versions of Groovy.

      Parameters:
        `left` - a BigDecimal
        `right` - a Double
      Returns:
        the multiplication of left by right
      Since:
        1.0

    - #### public static Number multiply(BigDecimal left, BigInteger right)

      Multiply a BigDecimal and a BigInteger. Note: This method was added to enforce the Groovy rule of BigDecimal*long == long. Without this method, the multiply(BigDecimal) method in BigDecimal would respond and return a BigDecimal instead. Since BigDecimal is preferred over Number, the Number*Number method is not chosen as in older versions of Groovy. BigInteger is the fallback for all integer types in Groovy

      Parameters:
        `left` - a BigDecimal
        `right` - a BigInteger
      Returns:
        the multiplication of left by right
      Since:
        1.0

    - #### @Deprecated public static CharSequence multiply(CharSequence self, Number factor)

    - #### @Deprecated public static String multiply(String self, Number factor)

    - #### @Deprecated public static DataInputStream newDataInputStream(File file)

    - #### @Deprecated public static DataOutputStream newDataOutputStream(File file)

    - #### @Deprecated public static BufferedInputStream newInputStream(File file)

    - #### @Deprecated public static BufferedInputStream newInputStream(URL url)

    - #### @Deprecated public static BufferedInputStream newInputStream(URL url, Map parameters)

    - #### @SuppressWarnings("unchecked") public static T newInstance(Class<T> c)

      Convenience method to dynamically create a new instance of this class. Calls the default constructor.

      Parameters:
        `c` - a class
      Returns:
        a new instance of this class
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static T newInstance(Class<T> c, Object[] args)

      Helper to construct a new instance from the given arguments. The constructor is called based on the number and types in the args array. Use `newInstance(null)` or simply `newInstance()` for the default (no-arg) constructor.

      Parameters:
        `c` - a class
        `args` - the constructor arguments
      Returns:
        a new instance of this class.
      Since:
        1.0

    - #### @Deprecated public static ObjectInputStream newObjectInputStream(File file)

    - #### @Deprecated public static ObjectInputStream newObjectInputStream(InputStream inputStream)

    - #### @Deprecated public static ObjectInputStream newObjectInputStream(InputStream inputStream, ClassLoader classLoader)

    - #### @Deprecated public static ObjectInputStream newObjectInputStream(File file, ClassLoader classLoader)

    - #### @Deprecated public static ObjectOutputStream newObjectOutputStream(File file)

    - #### @Deprecated public static ObjectOutputStream newObjectOutputStream(OutputStream outputStream)

    - #### @Deprecated public static BufferedOutputStream newOutputStream(File file)

    - #### @Deprecated public static PrintWriter newPrintWriter(File file)

    - #### @Deprecated public static PrintWriter newPrintWriter(File file, String charset)

    - #### @Deprecated public static PrintWriter newPrintWriter(Writer writer)

    - #### @Deprecated public static BufferedReader newReader(File file)

    - #### @Deprecated public static BufferedReader newReader(File file, String charset)

    - #### @Deprecated public static BufferedReader newReader(InputStream self)

    - #### @Deprecated public static BufferedReader newReader(InputStream self, String charset)

    - #### @Deprecated public static BufferedReader newReader(URL url)

    - #### @Deprecated public static BufferedReader newReader(URL url, Map parameters)

    - #### @Deprecated public static BufferedReader newReader(URL url, String charset)

    - #### @Deprecated public static BufferedReader newReader(URL url, Map parameters, String charset)

    - #### @Deprecated public static BufferedWriter newWriter(File file)

    - #### @Deprecated public static BufferedWriter newWriter(File file, boolean append)

    - #### @Deprecated public static BufferedWriter newWriter(File file, String charset, boolean append)

    - #### @Deprecated public static BufferedWriter newWriter(File file, String charset)

    - #### public static Character next(Character self)

      Increment a Character by one.

      Parameters:
        `self` - a Character
      Returns:
        an incremented Character
      Since:
        1.5.7

    - #### public static Number next(Number self)

      Increment a Number by one.

      Parameters:
        `self` - a Number
      Returns:
        an incremented Number
      Since:
        1.0

    - #### @Deprecated public static CharSequence next(CharSequence self)

    - #### @Deprecated public static String next(String self)

    - #### @Deprecated public static CharSequence normalize(CharSequence self)

    - #### @Deprecated public static String normalize(String self)

    - #### public static int numberAwareCompareTo(Comparable self, Comparable other)

      Provides a method that compares two comparables using Groovy's default number aware comparator.

      Parameters:
        `self` - a Comparable
        `other` - another Comparable
      Returns:
        a -ve number, 0 or a +ve number according to Groovy's compareTo contract
      Since:
        1.6.0

    - #### public static Number or(Number left, Number right)

      Bitwise OR together two numbers.

      Parameters:
        `left` - a Number
        `right` - another Number to bitwise OR
      Returns:
        the bitwise OR of both Numbers
      Since:
        1.0

    - #### public static BitSet or(BitSet left, BitSet right)

      Bitwise OR together two BitSets. Called when the '|' operator is used between two bit sets.

      Parameters:
        `left` - a BitSet
        `right` - another BitSet to bitwise AND
      Returns:
        the bitwise OR of both BitSets
      Since:
        1.5.0

    - #### public static Boolean or(Boolean left, Boolean right)

      Logical disjunction of two boolean operators

      Parameters:
        `left` - left operator
        `right` - right operator
      Returns:
        result of logical disjunction
      Since:
        1.0

    - #### @Deprecated public static CharSequence padLeft(CharSequence self, Number numberOfChars)

    - #### @Deprecated public static CharSequence padLeft(CharSequence self, Number numberOfChars, CharSequence padding)

    - #### @Deprecated public static String padLeft(String self, Number numberOfChars)

    - #### @Deprecated public static String padLeft(String self, Number numberOfChars, String padding)

    - #### @Deprecated public static CharSequence padRight(CharSequence self, Number numberOfChars)

    - #### @Deprecated public static CharSequence padRight(CharSequence self, Number numberOfChars, CharSequence padding)

    - #### @Deprecated public static String padRight(String self, Number numberOfChars)

    - #### @Deprecated public static String padRight(String self, Number numberOfChars, String padding)

    - #### public static Set<List<T>> permutations(List<T> self)

      Finds all permutations of a collection.

      Example usage:

          def result = [1, 2, 3].permutations()
           assert result == [[3, 2, 1], [3, 1, 2], [1, 3, 2], [2, 3, 1], [2, 1, 3], [1, 2, 3]] as Set

      Parameters:
        `self` - the Collection of items
      Returns:
        the permutations from the list
      Since:
        1.7.0

    - #### public static List<V> permutations(List<T> self, Closure<V> function)

      Finds all permutations of a collection, applies a function to each permutation and collects the result into a list.

      Example usage:

          Set result = [1, 2, 3].permutations { it.collect { v -> 2*v }}
           assert result == [[6, 4, 2], [6, 2, 4], [2, 6, 4], [4, 6, 2], [4, 2, 6], [2, 4, 6]] as Set

      Parameters:
        `self` - the Collection of items
        `function` - the function to apply on each permutation
      Returns:
        the list of results of the application of the function on each permutation
      Since:
        2.2.0

    - #### public static Map<K, V> plus(Map<K, V> left, Map<K, V> right)

      Returns a new `Map` containing all entries from `left` and `right`, giving precedence to `right`. Any keys appearing in both Maps will appear in the resultant map with values from the `right` operand. If the `left` map is one of TreeMap, LinkedHashMap, Hashtable or Properties, the returned Map will preserve that type, otherwise a HashMap will be returned.

      Roughly equivalent to `Map m = new HashMap(); m.putAll(left); m.putAll(right); return m;` but with some additional logic to preserve the `left` Map type for common cases as described above.

           assert [a:10, b:20] + [a:5, c:7] == [a:5, b:20, c:7]

      Parameters:
        `left` - a Map
        `right` - a Map
      Returns:
        a new Map containing all entries from left and right
      Since:
        1.5.0

    - #### public static Map<K, V> plus(Map<K, V> self, Collection<Map.Entry<K, V>> entries)

      Returns a new `Map` containing all entries from `self` and `entries`, giving precedence to `entries`. Any keys appearing in both Maps will appear in the resultant map with values from the `entries` operand. If `self` map is one of TreeMap, LinkedHashMap, Hashtable or Properties, the returned Map will preserve that type, otherwise a HashMap will be returned.

      Parameters:
        `self` - a Map
        `entries` - a Collection of Map.Entry items to be added to the Map.
      Returns:
        a new Map containing all key, value pairs from self and entries
      Since:
        1.6.1

    - #### @SuppressWarnings("unchecked") public static T[] plus(T[] left, T[] right)

      Create an array as a union of two arrays.

           Integer[] a = [1, 2, 3]
           Integer[] b = [4, 5, 6]
           assert a + b == [1, 2, 3, 4, 5, 6] as Integer[]

      Parameters:
        `left` - the left Array
        `right` - the right Array
      Returns:
        A new array containing right appended to left.
      Since:
        1.8.7

    - #### @SuppressWarnings("unchecked") public static T[] plus(T[] left, T right)

      Create an array containing elements from an original array plus an additional appended element.

           Integer[] a = [1, 2, 3]
           Integer[] result = a + 4
           assert result == [1, 2, 3, 4] as Integer[]

      Parameters:
        `left` - the array
        `right` - the value to append
      Returns:
        A new array containing left with right appended to it.
      Since:
        1.8.7

    - #### @SuppressWarnings("unchecked") public static T[] plus(T[] left, Collection<T> right)

      Create an array containing elements from an original array plus those from a Collection.

           Integer[] a = [1, 2, 3]
           def additions = [7, 8]
           assert a + additions == [1, 2, 3, 7, 8] as Integer[]

      Parameters:
        `left` - the array
        `right` - a Collection to be appended
      Returns:
        A new array containing left with right appended to it.
      Since:
        1.8.7

    - #### @SuppressWarnings("unchecked") public static T[] plus(T[] left, Iterable<T> right)

      Create an array containing elements from an original array plus those from an Iterable.

           class AbcIterable implements Iterable {
               Iterator iterator() { "abc".iterator() }
           }
           String[] letters = ['x', 'y', 'z']
           def result = letters + new AbcIterable()
           assert result == ['x', 'y', 'z', 'a', 'b', 'c'] as String[]
           assert result.class.array

      Parameters:
        `left` - the array
        `right` - an Iterable to be appended
      Returns:
        A new array containing elements from left with those from right appended.
      Since:
        1.8.7

    - #### public static Collection<T> plus(Collection<T> left, Collection<T> right)

      Create a Collection as a union of two collections. If the left collection is a Set, then the returned collection will be a Set otherwise a List. This operation will always create a new object for the result, while the operands remain unchanged.

          assert [1,2,3,4] == [1,2] + [3,4]

      Parameters:
        `left` - the left Collection
        `right` - the right Collection
      Returns:
        the merged Collection
      Since:
        1.5.0

    - #### public static Collection<T> plus(Collection<T> left, Iterable<T> right)

      Create a Collection as a union of a Collection and an Iterable. If the left collection is a Set, then the returned collection will be a Set otherwise a List. This operation will always create a new object for the result, while the operands remain unchanged.

      Parameters:
        `left` - the left Collection
        `right` - the right Iterable
      Returns:
        the merged Collection
      See Also:
        plus(Collection, Collection)
      Since:
        1.8.7

    - #### public static List<T> plus(List<T> self, int index, T[] items)

      Creates a new List by inserting all of the elements in the specified array to the elements from the original List at the specified index. Shifts the element currently at that index (if any) and any subsequent elements to the right (increasing their indices). The new elements will appear in the resulting List in the order that they occur in the original array. The behavior of this operation is undefined if the list or array operands are modified while the operation is in progress. The original list and array operands remain unchanged.

           def items = [1, 2, 3]
           def newItems = items.plus(2, 'a'..'c' as String[])
           assert newItems == [1, 2, 'a', 'b', 'c', 3]
           assert items == [1, 2, 3]

      See also `addAll` for similar functionality with modify semantics, i.e. which performs the changes on the original list itself.
      Parameters:
        `self` - an original list
        `items` - array containing elements to be merged with elements from the original list
        `index` - index at which to insert the first element from the specified array
      Returns:
        the new list
      See Also:
        plus(List, int, List)
      Since:
        1.8.1

    - #### public static List<T> plus(List<T> self, int index, List<T> additions)

      Creates a new List by inserting all of the elements in the given additions List to the elements from the original List at the specified index. Shifts the element currently at that index (if any) and any subsequent elements to the right (increasing their indices). The new elements will appear in the resulting List in the order that they occur in the original lists. The behavior of this operation is undefined if the original lists are modified while the operation is in progress. The original lists remain unchanged.

           def items = [1, 2, 3]
           def newItems = items.plus(2, 'a'..'c')
           assert newItems == [1, 2, 'a', 'b', 'c', 3]
           assert items == [1, 2, 3]

      See also `addAll` for similar functionality with modify semantics, i.e. which performs the changes on the original list itself.
      Parameters:
        `self` - an original List
        `additions` - a List containing elements to be merged with elements from the original List
        `index` - index at which to insert the first element from the given additions List
      Returns:
        the new list
      Since:
        1.8.1

    - #### public static List<T> plus(List<T> self, int index, Iterable<T> additions)

      Creates a new List by inserting all of the elements in the given Iterable to the elements from this List at the specified index.

      Parameters:
        `self` - an original list
        `additions` - an Iterable containing elements to be merged with the elements from the original List
        `index` - index at which to insert the first element from the given additions Iterable
      Returns:
        the new list
      See Also:
        plus(List, int, List)
      Since:
        1.8.7

    - #### public static Collection<T> plus(Collection<T> left, T right)

      Create a collection as a union of a Collection and an Object. If the collection is a Set, then the returned collection will be a Set otherwise a List. This operation will always create a new object for the result, while the operands remain unchanged.

          assert [1,2,3] == [1,2] + 3

      Parameters:
        `left` - a Collection
        `right` - an object to add/append
      Returns:
        the resulting Collection
      Since:
        1.5.0

    - #### public static Number plus(Character left, Number right)

      Add a Character and a Number. The ordinal value of the Character is used in the addition (the ordinal value is the unicode value which for simple character sets is the ASCII value). This operation will always create a new object for the result, while the operands remain unchanged.

      Parameters:
        `left` - a Character
        `right` - a Number
      Returns:
        the Number corresponding to the addition of left and right
      See Also:
        Integer.valueOf
      Since:
        1.0

    - #### public static Number plus(Number left, Character right)

      Add a Number and a Character. The ordinal value of the Character is used in the addition (the ordinal value is the unicode value which for simple character sets is the ASCII value).

      Parameters:
        `left` - a Number
        `right` - a Character
      Returns:
        The Number corresponding to the addition of left and right
      See Also:
        Integer.valueOf
      Since:
        1.0

    - #### public static Number plus(Character left, Character right)

      Add one Character to another. The ordinal values of the Characters are used in the addition (the ordinal value is the unicode value which for simple character sets is the ASCII value). This operation will always create a new object for the result, while the operands remain unchanged.

      Parameters:
        `left` - a Character
        `right` - a Character
      Returns:
        the Number corresponding to the addition of left and right
      See Also:
        plus(java.lang.Number, java.lang.Character)
      Since:
        1.0

    - #### @Deprecated public static CharSequence plus(CharSequence left, Object value)

    - #### @Deprecated public static String plus(Number value, String right)

    - #### @Deprecated public static String plus(String left, Object value)

    - #### @Deprecated public static String plus(StringBuffer left, String value)

    - #### public static T pop(List<T> self)

      Removes the last item from the List. Using add() and pop() is similar to push and pop on a Stack.

          def list = ["a", false, 2]
           assert list.pop() == 2
           assert list == ["a", false]

      throws:
        NoSuchElementException if the list is empty and you try to pop() it.
      Parameters:
        `self` - a List
      Returns:
        the item removed from the List
      Since:
        1.0

    - #### public static Number power(Number self, Number exponent)

      Power of a Number to a certain exponent. Called by the '**' operator.

      Parameters:
        `self` - a Number
        `exponent` - a Number exponent
      Returns:
        a Number to the power of a certain exponent
      Since:
        1.0

    - #### public static Number power(BigDecimal self, Integer exponent)

      Power of a BigDecimal to an integer certain exponent. If the exponent is positive, call the BigDecimal.pow(int) method to maintain precision. Called by the '**' operator.

      Parameters:
        `self` - a BigDecimal
        `exponent` - an Integer exponent
      Returns:
        a Number to the power of a the exponent

    - #### public static Number power(BigInteger self, Integer exponent)

      Power of a BigInteger to an integer certain exponent. If the exponent is positive, call the BigInteger.pow(int) method to maintain precision. Called by the '**' operator.

      Parameters:
        `self` - a BigInteger
        `exponent` - an Integer exponent
      Returns:
        a Number to the power of a the exponent

    - #### public static Number power(Integer self, Integer exponent)

      Power of an integer to an integer certain exponent. If the exponent is positive, convert to a BigInteger and call BigInteger.pow(int) method to maintain precision. Called by the '**' operator.

      Parameters:
        `self` - an Integer
        `exponent` - an Integer exponent
      Returns:
        a Number to the power of a the exponent

    - #### public static Number power(Long self, Integer exponent)

      Power of a long to an integer certain exponent. If the exponent is positive, convert to a BigInteger and call BigInteger.pow(int) method to maintain precision. Called by the '**' operator.

      Parameters:
        `self` - a Long
        `exponent` - an Integer exponent
      Returns:
        a Number to the power of a the exponent

    - #### public static Character previous(Character self)

      Decrement a Character by one.

      Parameters:
        `self` - a Character
      Returns:
        a decremented Character
      Since:
        1.5.7

    - #### public static Number previous(Number self)

      Decrement a Number by one.

      Parameters:
        `self` - a Number
      Returns:
        a decremented Number
      Since:
        1.0

    - #### @Deprecated public static CharSequence previous(CharSequence self)

    - #### @Deprecated public static String previous(String self)

    - #### protected static Object primitiveArrayGet(Object self, int idx)

      Implements the getAt(int) method for primitive type arrays.

      Parameters:
        `self` - an array object
        `idx` - the index of interest
      Returns:
        the returned value from the array
      Since:
        1.5.0

    - #### protected static List primitiveArrayGet(Object self, Range range)

      Implements the getAt(Range) method for primitive type arrays.

      Parameters:
        `self` - an array object
        `range` - the range of indices of interest
      Returns:
        the returned values from the array corresponding to the range
      Since:
        1.5.0

    - #### protected static List primitiveArrayGet(Object self, Collection indices)

      Implements the getAt(Collection) method for primitive type arrays. Each value in the collection argument is assumed to be a valid array index. The value at each index is then added to a list which is returned.

      Parameters:
        `self` - an array object
        `indices` - the indices of interest
      Returns:
        the returned values from the array
      Since:
        1.0

    - #### protected static Object primitiveArrayPut(Object self, int idx, Object newValue)

      Implements the setAt(int idx) method for primitive type arrays.

      Parameters:
        `self` - an object
        `idx` - the index of interest
        `newValue` - the new value to be put into the index of interest
      Returns:
        the added value
      Since:
        1.5.0

    - #### public static void print(Object self, Object value)

      Print a value formatted Groovy style to self if it is a Writer, otherwise to the standard output stream.

      Parameters:
        `self` - any Object
        `value` - the value to print
      Since:
        1.0

    - #### public static void print(PrintWriter self, Object value)

      Print a value formatted Groovy style to the print writer.

      Parameters:
        `self` - a PrintWriter
        `value` - the value to print
      Since:
        1.0

    - #### public static void print(PrintStream self, Object value)

      Print a value formatted Groovy style to the print stream.

      Parameters:
        `self` - a PrintStream
        `value` - the value to print
      Since:
        1.6.0

    - #### public static void print(Closure self, Object value)

      Print a value to the standard output stream. This method delegates to the owner to execute the method.

      Parameters:
        `self` - a generated closure
        `value` - the value to print
      Since:
        1.0

    - #### public static void print(Object self, PrintWriter out)

      Print to a console in interactive format.

      Parameters:
        `self` - any Object
        `out` - the PrintWriter used for printing
      Since:
        1.0

    - #### public static void printf(Object self, String format, Object[] values)

      Printf to a console.

      Parameters:
        `self` - any Object
        `format` - a format string
        `values` - values referenced by the format specifiers in the format string.
      Since:
        1.0

    - #### public static void printf(Object self, String format, Object arg)

      Prints a formatted string using the specified format string and arguments.

      Examples:

               printf ( "Hello, %s!\n" , [ "world" ] as String[] )
               printf ( "Hello, %s!\n" , [ "Groovy" ])
               printf ( "%d + %d = %d\n" , [ 1 , 2 , 1+2 ] as Integer[] )
               printf ( "%d + %d = %d\n" , [ 3 , 3 , 3+3 ])

               ( 1..5 ).each { printf ( "-- %d\n" , [ it ] as Integer[] ) }
               ( 1..5 ).each { printf ( "-- %d\n" , [ it ] as int[] ) }
               ( 0x41..0x45 ).each { printf ( "-- %c\n" , [ it ] as char[] ) }
               ( 07..011 ).each { printf ( "-- %d\n" , [ it ] as byte[] ) }
               ( 7..11 ).each { printf ( "-- %d\n" , [ it ] as short[] ) }
               ( 7..11 ).each { printf ( "-- %d\n" , [ it ] as long[] ) }
               ( 7..11 ).each { printf ( "-- %5.2f\n" , [ it ] as float[] ) }
               ( 7..11 ).each { printf ( "-- %5.2g\n" , [ it ] as double[] ) }

      Parameters:
        `self` - any Object
        `format` - A format string
        `arg` - Argument which is referenced by the format specifiers in the format string. The type of `arg` should be one of Object[], List, int[], short[], byte[], char[], boolean[], long[], float[], or double[].
      Since:
        1.0

    - #### public static void println(Object self)

      Print a linebreak to the standard output stream.

      Parameters:
        `self` - any Object
      Since:
        1.0

    - #### public static void println(Closure self)

      Print a linebreak to the standard output stream. This method delegates to the owner to execute the method.

      Parameters:
        `self` - a closure
      Since:
        1.0

    - #### public static void println(Object self, Object value)

      Print a value formatted Groovy style (followed by a newline) to self if it is a Writer, otherwise to the standard output stream.

      Parameters:
        `self` - any Object
        `value` - the value to print
      Since:
        1.0

    - #### public static void println(PrintWriter self, Object value)

      Print a value formatted Groovy style (followed by a newline) to the print writer.

      Parameters:
        `self` - a PrintWriter
        `value` - the value to print
      Since:
        1.0

    - #### public static void println(PrintStream self, Object value)

      Print a value formatted Groovy style (followed by a newline) to the print stream.

      Parameters:
        `self` - any Object
        `value` - the value to print
      Since:
        1.6.0

    - #### public static void println(Closure self, Object value)

      Print a value (followed by a newline) to the standard output stream. This method delegates to the owner to execute the method.

      Parameters:
        `self` - a closure
        `value` - the value to print
      Since:
        1.0

    - #### public static void println(Object self, PrintWriter out)

      Print to a console in interactive format.

      Parameters:
        `self` - any Object
        `out` - the PrintWriter used for printing
      Since:
        1.0

    - #### public static boolean push(List<T> self, T value)

      Appends an item to the List. Synonym for add().

          def list = [3, 4, 2]
           list.push("x")
           assert list == [3, 4, 2, "x"]

      throws:
        NoSuchElementException if the list is empty and you try to pop() it.
      Parameters:
        `self` - a List
        `value` - element to be appended to this list.
      Returns:
        `true` (as per the general contract of the `Collection.add` method).
      Since:
        1.5.5

    - #### public static Map<K, V> putAll(Map<K, V> self, Collection<Map.Entry<K, V>> entries)

      Provides an easy way to append multiple Map.Entry values to a Map.

      Parameters:
        `self` - a Map
        `entries` - a Collection of Map.Entry items to be added to the Map.
      Returns:
        the same map, after the items have been added to it.
      Since:
        1.6.1

    - #### public static void putAt(Object self, String property, Object newValue)

      Allows the subscript operator to be used to set dynamically named property values. `bean[somePropertyNameExpression] = foo`. The normal property notation of groovy is neater and more concise but only works with property names which are known at compile time.

      Parameters:
        `self` - the object to act upon
        `property` - the name of the property to set
        `newValue` - the value to set
      Since:
        1.0

    - #### public static void putAt(List<T> self, int idx, T value)

      A helper method to allow lists to work with subscript operators.

          def list = [2, 3]
           list[0] = 1
           assert list == [1, 3]

      Parameters:
        `self` - a List
        `idx` - an index
        `value` - the value to put at the given index
      Since:
        1.0

    - #### public static void putAt(List self, EmptyRange range, Object value)

      A helper method to allow lists to work with subscript operators.

          def list = ["a", true]
           list[1..<1] = 5
           assert list == ["a", 5, true]

      Parameters:
        `self` - a List
        `range` - the (in this case empty) subset of the list to set
        `value` - the values to put at the given sublist or a Collection of values
      Since:
        1.0

    - #### public static void putAt(List self, EmptyRange range, Collection value)

      A helper method to allow lists to work with subscript operators.

          def list = ["a", true]
           list[1..<1] = [4, 3, 2]
           assert list == ["a", 4, 3, 2, true]

      Parameters:
        `self` - a List
        `range` - the (in this case empty) subset of the list to set
        `value` - the Collection of values
      See Also:
        putAt(java.util.List, groovy.lang.EmptyRange, java.lang.Object)
      Since:
        1.0

    - #### public static void putAt(List self, IntRange range, Collection col)

      List subscript assignment operator when given a range as the index and the assignment operand is a collection. Example:

          def myList = [4, 3, 5, 1, 2, 8, 10]
           myList[3..5] = ["a", true]
           assert myList == [4, 3, 5, "a", true, 10]

      Items in the given range are replaced with items from the collection.
      Parameters:
        `self` - a List
        `range` - the subset of the list to set
        `col` - the collection of values to put at the given sublist
      Since:
        1.5.0

    - #### public static void putAt(List self, IntRange range, Object value)

      List subscript assignment operator when given a range as the index. Example:

          def myList = [4, 3, 5, 1, 2, 8, 10]
           myList[3..5] = "b"
           assert myList == [4, 3, 5, "b", 10]

      Items in the given range are replaced with the operand. The `value` operand is always treated as a single value.
      Parameters:
        `self` - a List
        `range` - the subset of the list to set
        `value` - the value to put at the given sublist
      Since:
        1.0

    - #### public static void putAt(List self, List splice, List values)

      A helper method to allow lists to work with subscript operators.

          def list = ["a", true, 42, 9.4]
           list[1, 4] = ["x", false]
           assert list == ["a", "x", 42, 9.4, false]

      Parameters:
        `self` - a List
        `splice` - the subset of the list to set
        `values` - the value to put at the given sublist
      Since:
        1.0

    - #### public static void putAt(List self, List splice, Object value)

      A helper method to allow lists to work with subscript operators.

          def list = ["a", true, 42, 9.4]
           list[1, 3] = 5
           assert list == ["a", 5, 42, 5]

      Parameters:
        `self` - a List
        `splice` - the subset of the list to set
        `value` - the value to put at the given sublist
      Since:
        1.0

    - #### public static V putAt(Map<K, V> self, K key, V value)

      A helper method to allow maps to work with subscript operators

      Parameters:
        `self` - a Map
        `key` - an Object as a key for the map
        `value` - the value to put into the map
      Returns:
        the value corresponding to the given key
      Since:
        1.0

    - #### public static void putAt(BitSet self, IntRange range, boolean value)

      Support assigning a range of values with a single assignment statement.

      Parameters:
        `self` - a BitSet
        `range` - the range of values to set
        `value` - value
      See Also:
        BitSet
        Range
      Since:
        1.5.0

    - #### public static void putAt(BitSet self, int index, boolean value)

      Support subscript-style assignment for a BitSet.

      Parameters:
        `self` - a BitSet
        `index` - index of the entry to set
        `value` - value
      See Also:
        BitSet
      Since:
        1.5.0

    - #### @Deprecated public static void putAt(StringBuffer self, EmptyRange range, Object value)

    - #### @Deprecated public static void putAt(StringBuffer self, IntRange range, Object value)

    - #### @Deprecated public static byte[] readBytes(File file)

    - #### @Deprecated public static String readLine(Reader self)

    - #### @Deprecated public static List<CharSequence> readLines(CharSequence self)

    - #### @Deprecated public static List<String> readLines(String self)

    - #### @Deprecated public static List<String> readLines(File file)

    - #### @Deprecated public static List<String> readLines(File file, String charset)

    - #### @Deprecated public static List<String> readLines(InputStream stream)

    - #### @Deprecated public static List<String> readLines(InputStream stream, String charset)

    - #### @Deprecated public static List<String> readLines(URL self)

    - #### @Deprecated public static List<String> readLines(URL self, String charset)

    - #### @Deprecated public static List<String> readLines(Reader reader)

    - #### public static boolean removeAll(Collection self, Object[] items)

      Modifies this collection by removing its elements that are contained within the specified object array. See also `findAll` and `grep` when wanting to produce a new list containing items which don't match some criteria while leaving the original collection unchanged.

      Parameters:
        `self` - a Collection to be modified
        `items` - array containing elements to be removed from this collection
      Returns:
        `true` if this collection changed as a result of the call
      See Also:
        Collection.removeAll
      Since:
        1.7.2

    - #### public static boolean removeAll(Collection<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition)

      Modifies this collection by removing the elements that are matched according to the specified closure condition. See also `findAll` and `grep` when wanting to produce a new list containing items which don't match some criteria while leaving the original collection unchanged.

      Parameters:
        `self` - a Collection to be modified
        `condition` - a closure condition
      Returns:
        `true` if this collection changed as a result of the call
      See Also:
        Iterator.remove
      Since:
        1.7.2

    - #### @Deprecated public static boolean renameTo(File self, String newPathName)

    - #### @Deprecated public static CharSequence replaceAll(CharSequence self, CharSequence regex, CharSequence replacement)

    - #### @Deprecated public static CharSequence replaceAll(CharSequence self, CharSequence regex, Closure closure)

    - #### @Deprecated public static CharSequence replaceAll(CharSequence self, Pattern pattern, CharSequence replacement)

    - #### @Deprecated public static String replaceAll(CharSequence self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String replaceAll(String self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String replaceAll(String self, Pattern pattern, String replacement)

    - #### @Deprecated public static String replaceAll(String self, String regex, Closure closure)

    - #### @Deprecated public static String replaceFirst(CharSequence self, CharSequence regex, CharSequence replacement)

    - #### @Deprecated public static String replaceFirst(CharSequence self, CharSequence regex, Closure closure)

    - #### @Deprecated public static CharSequence replaceFirst(CharSequence self, Pattern pattern, CharSequence replacement)

    - #### @Deprecated public static String replaceFirst(CharSequence self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String replaceFirst(String self, Pattern pattern, Closure closure)

    - #### @Deprecated public static String replaceFirst(String self, Pattern pattern, String replacement)

    - #### @Deprecated public static String replaceFirst(String self, String regex, Closure closure)

    - #### public static List<MetaMethod> respondsTo(Object self, String name, Object[] argTypes)

      Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types.

      Note that this method's return value is based on realised methods and does not take into account objects or classes that implement invokeMethod or methodMissing

      This method is "safe" in that it will always return a value and never throw an exception

      Parameters:
        `self` - The object to inspect
        `name` - The name of the method of interest
        `argTypes` - The argument types to match against
      Returns:
        A List of MetaMethods matching the argument types which will be empty if no matching methods exist
      See Also:
        MetaObjectProtocol.respondsTo
      Since:
        1.6.0

    - #### public static List<MetaMethod> respondsTo(Object self, String name)

      Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of the arguments.

      Note that this method's return value is based on realised methods and does not take into account objects or classes that implement invokeMethod or methodMissing

      This method is "safe" in that it will always return a value and never throw an exception

      Parameters:
        `self` - The object to inspect
        `name` - The name of the method of interest
      Returns:
        A List of MetaMethods matching the given name or an empty list if no matching methods exist
      See Also:
        MetaObjectProtocol.respondsTo
      Since:
        1.6.1

    - #### public static boolean retainAll(Collection self, Object[] items)

      Modifies this collection so that it retains only its elements that are contained in the specified array. In other words, removes from this collection all of its elements that are not contained in the specified array. See also `grep` and `findAll` when wanting to produce a new list containing items which match some specified items but leaving the original collection unchanged.

      Parameters:
        `self` - a Collection to be modified
        `items` - array containing elements to be retained from this collection
      Returns:
        `true` if this collection changed as a result of the call
      See Also:
        Collection.retainAll
      Since:
        1.7.2

    - #### public static boolean retainAll(Collection<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition)

      Modifies this collection so that it retains only its elements that are matched according to the specified closure condition. In other words, removes from this collection all of its elements that don't match. See also `findAll` and `grep` when wanting to produce a new list containing items which match some criteria but leaving the original collection unchanged.

      Parameters:
        `self` - a Collection to be modified
        `condition` - a closure condition
      Returns:
        `true` if this collection changed as a result of the call
      See Also:
        Iterator.remove
      Since:
        1.7.2

    - #### public static List<T> reverse(List<T> self)

      Creates a new List with the identical contents to this list but in reverse order.

           def list = ["a", 4, false]
           assert list.reverse() == [false, 4, "a"]
           assert list == ["a", 4, false]

      Parameters:
        `self` - a List
      Returns:
        a reversed List
      See Also:
        reverse(List, boolean)
      Since:
        1.0

    - #### public static List<T> reverse(List<T> self, boolean mutate)

      Reverses the elements in a list. If mutate is true, the original list is modified in place and returned. Otherwise, a new list containing the reversed items is produced.

           def list = ["a", 4, false]
           assert list.reverse(false) == [false, 4, "a"]
           assert list == ["a", 4, false]
           assert list.reverse(true) == [false, 4, "a"]
           assert list == [false, 4, "a"]

      Parameters:
        `self` - a List
        `mutate` - true if the list itself should be reversed in place and returned, false if a new list should be created
      Returns:
        a reversed List
      Since:
        1.8.1

    - #### @SuppressWarnings("unchecked") public static T[] reverse(T[] self)

      Creates a new array containing items which are the same as this array but in reverse order.

      Parameters:
        `self` - an array
      Returns:
        an array containing the reversed items
      See Also:
        reverse(Object[], boolean)
      Since:
        1.5.5

    - #### @SuppressWarnings("unchecked") public static T[] reverse(T[] self, boolean mutate)

      Reverse the items in an array. If mutate is true, the original array is modified in place and returned. Otherwise, a new array containing the reversed items is produced.

      Parameters:
        `self` - an array
        `mutate` - true if the array itself should be reversed in place and returned, false if a new array should be created
      Returns:
        an array containing the reversed items
      Since:
        1.8.1

    - #### public static Iterator<T> reverse(Iterator<T> self)

      Reverses the iterator. The original iterator will become exhausted of elements after determining the reversed values. A new iterator for iterating through the reversed values is returned.

      Parameters:
        `self` - an Iterator
      Returns:
        a reversed Iterator
      Since:
        1.5.5

    - #### @Deprecated public static CharSequence reverse(CharSequence self)

    - #### @Deprecated public static String reverse(String self)

    - #### public static Map<K, V> reverseEach(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure closure)

      Allows a Map to be iterated through in reverse order using a closure. In general, the order in which the map contents are processed cannot be guaranteed. In practise, specialized forms of Map, e.g. a TreeMap will have its contents processed according to the reverse of the natural ordering of the map.

      Parameters:
        `self` - the map over which we iterate
        `closure` - the 1 or 2 arg closure applied on each entry of the map
      Returns:
        returns the self parameter
      See Also:
        each(Map, Closure)
      Since:
        1.7.2

    - #### public static List<T> reverseEach(List<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Iterate over each element of the list in the reverse order.

          def result = []
           [1,2,3].reverseEach { result << it }
           assert result == [3,2,1]

      Parameters:
        `self` - a List
        `closure` - a closure to which each item is passed.
      Returns:
        the original list
      Since:
        1.5.0

    - #### public static T[] reverseEach(T[] self, @ClosureParams(FirstParam.Component.class) Closure closure)

      Iterate over each element of the array in the reverse order.

      Parameters:
        `self` - an Object array
        `closure` - a closure to which each item is passed
      Returns:
        the original array
      Since:
        1.5.2

    - #### public static Number rightShift(Number self, Number operand)

      Implementation of the right shift operator for integral types. Non integral Number types throw UnsupportedOperationException.

      Parameters:
        `self` - a Number object
        `operand` - the shift distance by which to right shift the number
      Returns:
        the resulting number
      Since:
        1.5.0

    - #### public static Number rightShiftUnsigned(Number self, Number operand)

      Implementation of the right shift (unsigned) operator for integral types. Non integral Number types throw UnsupportedOperationException.

      Parameters:
        `self` - a Number object
        `operand` - the shift distance by which to right shift (unsigned) the number
      Returns:
        the resulting number
      Since:
        1.5.0

    - #### public static int round(Float number)

      Round the value

      Parameters:
        `number` - a Float
      Returns:
        the rounded value of that Float
      Since:
        1.0

    - #### public static float round(Float number, int precision)

      Round the value

      Parameters:
        `number` - a Float
        `precision` - the number of decimal places to keep
      Returns:
        the Float rounded to the number of decimal places specified by precision
      Since:
        1.6.0

    - #### public static long round(Double number)

      Round the value

      Parameters:
        `number` - a Double
      Returns:
        the rounded value of that Double
      Since:
        1.0

    - #### public static double round(Double number, int precision)

      Round the value

      Parameters:
        `number` - a Double
        `precision` - the number of decimal places to keep
      Returns:
        the Double rounded to the number of decimal places specified by precision
      Since:
        1.6.4

    - #### public static TimerTask runAfter(Timer timer, int delay, Closure closure)

      Allows a simple syntax for using timers. This timer will execute the given closure after the given delay.

      Parameters:
        `timer` - a timer object
        `delay` - the delay in milliseconds before running the closure code
        `closure` - the closure to invoke
      Returns:
        The timer task which has been scheduled.
      Since:
        1.5.0

    - #### @Deprecated public static void setBytes(File file, byte[] bytes)

    - #### @Deprecated public static void setBytes(OutputStream os, byte[] bytes)

    - #### @Deprecated public static void setIndex(Matcher matcher, int idx)

    - #### public static void setMetaClass(Class self, MetaClass metaClass)

      Sets the metaclass for a given class.

      Parameters:
        `self` - the class whose metaclass we wish to set
        `metaClass` - the new MetaClass
      Since:
        1.6.0

    - #### public static void setMetaClass(Object self, MetaClass metaClass)

      Set the metaclass for an object.

      Parameters:
        `self` - the object whose metaclass we want to set
        `metaClass` - the new metaclass value
      Since:
        1.6.0

    - #### public static void setMetaClass(GroovyObject self, MetaClass metaClass)

      Set the metaclass for a GroovyObject.

      Parameters:
        `self` - the object whose metaclass we want to set
        `metaClass` - the new metaclass value
      Since:
        2.0.0

    - #### @Deprecated public static void setText(File file, String text)

    - #### @Deprecated public static void setText(File file, String text, String charset)

    - #### public static int size(Iterator self)

      Provide the standard Groovy `size()` method for `Iterator`. The iterator will become exhausted of elements after determining the size value.

      Parameters:
        `self` - an Iterator
      Returns:
        the length of the Iterator
      Since:
        1.5.5

    - #### public static int size(Object[] self)

      Provide the standard Groovy `size()` method for an array.

      Parameters:
        `self` - an Array of objects
      Returns:
        the size (length) of the Array
      Since:
        1.0

    - #### public static int size(boolean[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - a boolean array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.5.0

    - #### public static int size(byte[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - a byte array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.0

    - #### public static int size(char[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - a char array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.0

    - #### public static int size(short[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - a short array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.0

    - #### public static int size(int[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - an int array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.0

    - #### public static int size(long[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - a long array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.0

    - #### public static int size(float[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - a float array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.0

    - #### public static int size(double[] array)

      Allows arrays to behave similar to collections.

      Parameters:
        `array` - a double array
      Returns:
        the length of the array
      See Also:
        Array.getLength
      Since:
        1.0

    - #### @Deprecated public static int size(CharSequence text)

    - #### @Deprecated public static long size(Matcher self)

    - #### @Deprecated public static int size(String text)

    - #### @Deprecated public static int size(StringBuffer buffer)

    - #### @Deprecated public static long size(File self)

    - #### @Deprecated public static List<T> sort(Collection<T> self)

      deprecated:
        Use the Iterable version of sort instead
      See Also:
        sort(Iterable,boolean)
      Since:
        1.0

    - #### public static List<T> sort(Iterable<T> self)

      Sorts the Collection. Assumes that the collection items are comparable and uses their natural ordering to determine the resulting order. If the Collection is a List, it is sorted in place and returned. Otherwise, the elements are first placed into a new list which is then sorted and returned - leaving the original Collection unchanged.

          assert [1,2,3] == [3,1,2].sort()

      Parameters:
        `self` - the Iterable to be sorted
      Returns:
        the sorted Iterable as a List
      See Also:
        sort(Collection, boolean)
      Since:
        2.2.0

    - #### @Deprecated public static List<T> sort(Collection<T> self, boolean mutate)

      deprecated:
        Use the Iterable version of sort instead
      See Also:
        sort(Iterable, boolean)
      Since:
        1.8.1

    - #### public static List<T> sort(Iterable<T> self, boolean mutate)

      Sorts the Iterable. Assumes that the Iterable items are comparable and uses their natural ordering to determine the resulting order. If the Iterable is a List and mutate is true, it is sorted in place and returned. Otherwise, the elements are first placed into a new list which is then sorted and returned - leaving the original Iterable unchanged.

          assert [1,2,3] == [3,1,2].sort()

           def orig = [1, 3, 2]
           def sorted = orig.sort(false)
           assert orig == [1, 3, 2]
           assert sorted == [1, 2, 3]

      Parameters:
        `self` - the collection to be sorted
        `mutate` - false will always cause a new list to be created, true will mutate lists in place
      Returns:
        the sorted collection as a List
      Since:
        2.2.0

    - #### public static Map<K, V> sort(Map<K, V> self, @ClosureParams(value=FromString.class, options={"Map.Entry","Map.Entry,Map.Entry"}) Closure closure)

      Sorts the elements from the given map into a new ordered map using the closure as a comparator to determine the ordering. The original map is unchanged.

          def map = [a:5, b:3, c:6, d:4].sort { a, b -> a.value <=> b.value }
           assert map == [b:3, d:4, a:5, c:6]

      Parameters:
        `self` - the original unsorted map
        `closure` - a Closure used as a comparator
      Returns:
        the sorted map
      Since:
        1.6.0

    - #### public static Map<K, V> sort(Map<K, V> self, Comparator<K> comparator)

      Sorts the elements from the given map into a new ordered Map using the specified key comparator to determine the ordering. The original map is unchanged.

          def map = [ba:3, cz:6, ab:5].sort({ a, b -> a[-1] <=> b[-1] } as Comparator)
           assert map*.value == [3, 5, 6]

      Parameters:
        `self` - the original unsorted map
        `comparator` - a Comparator
      Returns:
        the sorted map
      Since:
        1.7.2

    - #### public static Map<K, V> sort(Map<K, V> self)

      Sorts the elements from the given map into a new ordered Map using the natural ordering of the keys to determine the ordering. The original map is unchanged.

          map = [ba:3, cz:6, ab:5].sort()
           assert map*.value == [5, 3, 6]

      Parameters:
        `self` - the original unsorted map
      Returns:
        the sorted map
      Since:
        1.7.2

    - #### public static T[] sort(T[] self)

      Modifies this array so that its elements are in sorted order. The array items are assumed to be comparable.

      Parameters:
        `self` - the array to be sorted
      Returns:
        the sorted array
      Since:
        1.5.5

    - #### public static T[] sort(T[] self, boolean mutate)

      Sorts the given array into sorted order. The array items are assumed to be comparable. If mutate is true, the array is sorted in place and returned. Otherwise, a new sorted array is returned and the original array remains unchanged.

           def orig = ["hello","hi","Hey"] as String[]
           def sorted = orig.sort(false)
           assert orig == ["hello","hi","Hey"] as String[]
           assert sorted == ["Hey","hello","hi"] as String[]
           orig.sort(true)
           assert orig == ["Hey","hello","hi"] as String[]

      Parameters:
        `self` - the array to be sorted
        `mutate` - false will always cause a new array to be created, true will mutate the array in place
      Returns:
        the sorted array
      Since:
        1.8.1

    - #### public static Iterator<T> sort(Iterator<T> self)

      Sorts the given iterator items into a sorted iterator. The items are assumed to be comparable. The original iterator will become exhausted of elements after completing this method call. A new iterator is produced that traverses the items in sorted order.

      Parameters:
        `self` - the Iterator to be sorted
      Returns:
        the sorted items as an Iterator
      Since:
        1.5.5

    - #### public static Iterator<T> sort(Iterator<T> self, Comparator<T> comparator)

      Sorts the given iterator items into a sorted iterator using the comparator. The original iterator will become exhausted of elements after completing this method call. A new iterator is produced that traverses the items in sorted order.

      Parameters:
        `self` - the Iterator to be sorted
        `comparator` - a Comparator used for comparing items
      Returns:
        the sorted items as an Iterator
      Since:
        1.5.5

    - #### @Deprecated public static List<T> sort(Collection<T> self, Comparator<T> comparator)

      deprecated:
        Use the Iterable version of sort instead
      See Also:
        sort(Iterable, boolean, Comparator)
      Since:
        1.0

    - #### @Deprecated public static List<T> sort(Collection<T> self, boolean mutate, Comparator<T> comparator)

      deprecated:
        Use the Iterable version of sort instead
      See Also:
        sort(Iterable, boolean, Comparator)
      Since:
        1.8.1

    - #### public static List<T> sort(Iterable<T> self, boolean mutate, Comparator<T> comparator)

      Sorts the Iterable using the given Comparator. If the Iterable is a List and mutate is true, it is sorted in place and returned. Otherwise, the elements are first placed into a new list which is then sorted and returned - leaving the original Iterable unchanged.

           assert ["hi","hey","hello"] == ["hello","hi","hey"].sort( { a, b -> a.length() <=> b.length() } as Comparator )

           def orig = ["hello","hi","Hey"]
           def sorted = orig.sort(false, String.CASE_INSENSITIVE_ORDER)
           assert orig == ["hello","hi","Hey"]
           assert sorted == ["hello","Hey","hi"]

      Parameters:
        `self` - the Iterable to be sorted
        `mutate` - false will always cause a new list to be created, true will mutate lists in place
        `comparator` - a Comparator used for the comparison
      Returns:
        a sorted List
      Since:
        2.2.0

    - #### public static T[] sort(T[] self, Comparator<T> comparator)

      Sorts the given array into sorted order using the given comparator.

      Parameters:
        `self` - the array to be sorted
        `comparator` - a Comparator used for the comparison
      Returns:
        the sorted array
      Since:
        1.5.5

    - #### public static T[] sort(T[] self, boolean mutate, Comparator<T> comparator)

      Modifies this array so that its elements are in sorted order as determined by the given comparator. If mutate is true, the array is sorted in place and returned. Otherwise, a new sorted array is returned and the original array remains unchanged.

           def orig = ["hello","hi","Hey"] as String[]
           def sorted = orig.sort(false, String.CASE_INSENSITIVE_ORDER)
           assert orig == ["hello","hi","Hey"] as String[]
           assert sorted == ["hello","Hey","hi"] as String[]
           orig.sort(true, String.CASE_INSENSITIVE_ORDER)
           assert orig == ["hello","Hey","hi"] as String[]

      Parameters:
        `self` - the array containing elements to be sorted
        `mutate` - false will always cause a new array to be created, true will mutate arrays in place
        `comparator` - a Comparator used for the comparison
      Returns:
        a sorted array
      Since:
        1.8.1

    - #### public static Iterator<T> sort(Iterator<T> self, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      Sorts the given iterator items into a sorted iterator using the Closure to determine the correct ordering. The original iterator will be fully processed after the method call.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

      Parameters:
        `self` - the Iterator to be sorted
        `closure` - a Closure used to determine the correct ordering
      Returns:
        the sorted items as an Iterator
      Since:
        1.5.5

    - #### @SuppressWarnings("unchecked") public static T[] sort(T[] self, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      Sorts the elements from this array into a newly created array using the Closure to determine the correct ordering.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

      Parameters:
        `self` - the array containing the elements to be sorted
        `closure` - a Closure used to determine the correct ordering
      Returns:
        the sorted array
      Since:
        1.5.5

    - #### @SuppressWarnings("unchecked") public static T[] sort(T[] self, boolean mutate, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      Modifies this array so that its elements are in sorted order using the Closure to determine the correct ordering. If mutate is false, a new array is returned and the original array remains unchanged. Otherwise, the original array is sorted in place and returned.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

           def orig = ["hello","hi","Hey"] as String[]
           def sorted = orig.sort(false) { it.size() }
           assert orig == ["hello","hi","Hey"] as String[]
           assert sorted == ["hi","Hey","hello"] as String[]
           orig.sort(true) { it.size() }
           assert orig == ["hi","Hey","hello"] as String[]

      Parameters:
        `self` - the array to be sorted
        `mutate` - false will always cause a new array to be created, true will mutate arrays in place
        `closure` - a Closure used to determine the correct ordering
      Returns:
        the sorted array
      Since:
        1.8.1

    - #### public static List<T> sort(Collection<T> self, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      Sorts this Collection using the given Closure to determine the correct ordering. If the Collection is a List, it is sorted in place and returned. Otherwise, the elements are first placed into a new list which is then sorted and returned - leaving the original Collection unchanged.

      If the Closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

          assert ["hi","hey","hello"] == ["hello","hi","hey"].sort { it.length() }

          assert ["hi","hey","hello"] == ["hello","hi","hey"].sort { a, b -> a.length() <=> b.length() }

      Parameters:
        `self` - a Collection to be sorted
        `closure` - a 1 or 2 arg Closure used to determine the correct ordering
      Returns:
        a newly created sorted List
      See Also:
        sort(Collection, boolean, Closure)
      Since:
        1.0

    - #### public static List<T> sort(Iterable<T> self, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      Sorts this Iterable using the given Closure to determine the correct ordering. If the Iterable is a List, it is sorted in place and returned. Otherwise, the elements are first placed into a new list which is then sorted and returned - leaving the original Iterable unchanged.

      If the Closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

          assert ["hi","hey","hello"] == ["hello","hi","hey"].sort { it.length() }

          assert ["hi","hey","hello"] == ["hello","hi","hey"].sort { a, b -> a.length() <=> b.length() }

      Parameters:
        `self` - the Iterable to be sorted
        `closure` - a 1 or 2 arg Closure used to determine the correct ordering
      Returns:
        a newly created sorted List
      See Also:
        sort(Collection, boolean, Closure)
      Since:
        2.2.0

    - #### @Deprecated public static List<T> sort(Collection<T> self, boolean mutate, Closure closure)

      deprecated:
        Use the Iterable version of sort instead
      See Also:
        sort(Iterable, boolean, Closure)
      Since:
        1.8.1

    - #### public static List<T> sort(Iterable<T> self, boolean mutate, Closure closure)

      Sorts this Iterable using the given Closure to determine the correct ordering. If the Iterable is a List and mutate is true, it is sorted in place and returned. Otherwise, the elements are first placed into a new list which is then sorted and returned - leaving the original Iterable unchanged.

      If the closure has two parameters it is used like a traditional Comparator. I.e. it should compare its two parameters for order, returning a negative integer, zero, or a positive integer when the first parameter is less than, equal to, or greater than the second respectively. Otherwise, the Closure is assumed to take a single parameter and return a Comparable (typically an Integer) which is then used for further comparison.

          assert ["hi","hey","hello"] == ["hello","hi","hey"].sort { it.length() }

          assert ["hi","hey","hello"] == ["hello","hi","hey"].sort { a, b -> a.length() <=> b.length() }

           def orig = ["hello","hi","Hey"]
           def sorted = orig.sort(false) { it.toUpperCase() }
           assert orig == ["hello","hi","Hey"]
           assert sorted == ["hello","Hey","hi"]

      Parameters:
        `self` - the Iterable to be sorted
        `mutate` - false will always cause a new list to be created, true will mutate lists in place
        `closure` - a 1 or 2 arg Closure used to determine the correct ordering
      Returns:
        a newly created sorted List
      Since:
        2.2.0

    - #### public static SortedSet<T> sort(SortedSet<T> self)

      Avoids doing unnecessary work when sorting an already sorted set (i.e. an identity function for an already sorted set).

      Parameters:
        `self` - an already sorted set
      Returns:
        the set
      Since:
        1.0

    - #### public static SortedMap<K, V> sort(SortedMap<K, V> self)

      Avoids doing unnecessary work when sorting an already sorted map (i.e. an identity function for an already sorted map).

      Parameters:
        `self` - an already sorted map
      Returns:
        the map
      Since:
        1.8.1

    - #### public static Collection split(Object self, Closure closure)

      Splits all items into two lists based on the closure condition. The first list contains all items matching the closure expression. The second list all those that don't.

      Parameters:
        `self` - an Object with an Iterator returning its values
        `closure` - a closure condition
      Returns:
        a List whose first item is the accepted values and whose second item is the rejected values
      Since:
        1.6.0

    - #### public static Collection<Collection<T>> split(Collection<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure closure)

      Splits all items into two collections based on the closure condition. The first list contains all items which match the closure expression. The second list all those that don't.

      Example usage:

          assert [[2,4],[1,3]] == [1,2,3,4].split { it % 2 == 0 }

      Parameters:
        `self` - a Collection of values
        `closure` - a closure condition
      Returns:
        a List whose first item is the accepted values and whose second item is the rejected values
      Since:
        1.6.0

    - #### @Deprecated public static CharSequence[] split(CharSequence self)

    - #### @Deprecated public static String[] split(GString self)

    - #### @Deprecated public static String[] split(String self)

    - #### @Deprecated public static T splitEachLine(CharSequence self, CharSequence regex, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(CharSequence self, Pattern pattern, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(String self, Pattern pattern, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(String self, String regex, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(File self, String regex, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(File self, Pattern pattern, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(File self, String regex, String charset, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(File self, Pattern pattern, String charset, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(URL self, String regex, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(URL self, Pattern pattern, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(URL self, String regex, String charset, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(URL self, Pattern pattern, String charset, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(Reader self, String regex, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(Reader self, Pattern pattern, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(InputStream stream, String regex, String charset, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(InputStream stream, Pattern pattern, String charset, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(InputStream stream, String regex, Closure<T> closure)

    - #### @Deprecated public static T splitEachLine(InputStream stream, Pattern pattern, Closure<T> closure)

    - #### public static SpreadMap spread(Map self)

      Synonym for toSpreadMap(java.util.Map).

      Parameters:
        `self` - a map
      Returns:
        a newly created SpreadMap
      Since:
        1.0

    - #### public static String sprintf(Object self, String format, Object[] values)

      Sprintf to a string.

      Parameters:
        `self` - any Object
        `format` - a format string
        `values` - values referenced by the format specifiers in the format string.
      Returns:
        the resulting formatted string
      Since:
        1.5.0

    - #### public static String sprintf(Object self, String format, Object arg)

      Returns a formatted string using the specified format string and arguments.

      Parameters:
        `self` - any Object
        `format` - A format string
        `arg` - Argument which is referenced by the format specifiers in the format string. The type of `arg` should be one of Object[], List, int[], short[], byte[], char[], boolean[], long[], float[], or double[].
      Returns:
        the resulting printf'd string
      Since:
        1.5.0

    - #### public static void step(Number self, Number to, Number stepNumber, Closure closure)

      Iterates from this number up to the given number using a step increment. Each intermediate number is passed to the given closure. Example:

          0.step( 10, 2 ) {
             println it
           }

      Prints even numbers 0 through 8.
      Parameters:
        `self` - a Number to start with
        `to` - a Number to go up to, exclusive
        `stepNumber` - a Number representing the step increment
        `closure` - the closure to call
      Since:
        1.0

    - #### @Deprecated public static CharSequence stripIndent(CharSequence self)

    - #### @Deprecated public static CharSequence stripIndent(CharSequence self, int numChars)

    - #### @Deprecated public static String stripIndent(String self)

    - #### @Deprecated public static String stripIndent(String self, int numChars)

    - #### @Deprecated public static CharSequence stripMargin(CharSequence self)

    - #### @Deprecated public static CharSequence stripMargin(CharSequence self, char marginChar)

    - #### @Deprecated public static String stripMargin(CharSequence self, CharSequence marginChar)

    - #### @Deprecated public static String stripMargin(String self)

    - #### @Deprecated public static String stripMargin(String self, char marginChar)

    - #### @Deprecated public static String stripMargin(String self, String marginChar)

    - #### public static Map<K, V> subMap(Map<K, V> map, Collection<K> keys)

      Creates a sub-Map containing the given keys. This method is similar to List.subList() but uses keys rather than index ranges.

          assert [1:10, 2:20, 4:40].subMap( [2, 4] ) == [2:20, 4:40]

      Parameters:
        `map` - a Map
        `keys` - a Collection of keys
      Returns:
        a new Map containing the given keys
      Since:
        1.0

    - #### public static Map<K, V> subMap(Map<K, V> map, K[] keys)

      Creates a sub-Map containing the given keys. This method is similar to List.subList() but uses keys rather than index ranges. The original map is unaltered.

           def orig = [1:10, 2:20, 3:30, 4:40]
           assert orig.subMap([1, 3] as int[]) == [1:10, 3:30]
           assert orig.subMap([2, 4] as Integer[]) == [2:20, 4:40]
           assert orig.size() == 4

      Parameters:
        `map` - a Map
        `keys` - an array of keys
      Returns:
        a new Map containing the given keys
      Since:
        2.1.0

    - #### public static Set<List<T>> subsequences(List<T> self)

      Finds all non-null subsequences of a list.

      Example usage:

          def result = [1, 2, 3].subsequences()
           assert result == [[1, 2, 3], [1, 3], [2, 3], [1, 2], [1], [2], [3]] as Set

      Parameters:
        `self` - the List of items
      Returns:
        the subsequences from the list
      Since:
        1.7.0

    - #### @Deprecated public static Object sum(Collection self)

      deprecated:
        Use the Iterable version of sum instead
      See Also:
        sum(Iterable)
      Since:
        1.0

    - #### public static Object sum(Iterable self)

      Sums the items in an Iterable. This is equivalent to invoking the "plus" method on all items in the Iterable.

          assert 1+2+3+4 == [1,2,3,4].sum()

      Parameters:
        `self` - Collection of values to add together
      Returns:
        The sum of all of the items
      Since:
        2.2.0

    - #### public static Object sum(Object[] self)

      Sums the items in an array. This is equivalent to invoking the "plus" method on all items in the array.

      Parameters:
        `self` - The array of values to add together
      Returns:
        The sum of all of the items
      See Also:
        sum(java.util.Collection)
      Since:
        1.7.1

    - #### public static Object sum(Iterator<Object> self)

      Sums the items from an Iterator. This is equivalent to invoking the "plus" method on all items from the Iterator. The iterator will become exhausted of elements after determining the sum value.

      Parameters:
        `self` - an Iterator for the values to add together
      Returns:
        The sum of all of the items
      Since:
        1.5.5

    - #### @Deprecated public static Object sum(Collection self, Object initialValue)

      deprecated:
        Use the Iterable version of sum instead
      See Also:
        sum(Iterable, Object)
      Since:
        1.5.0

    - #### public static Object sum(Iterable self, Object initialValue)

      Sums the items in an Iterable, adding the result to some initial value.

           assert 5+1+2+3+4 == [1,2,3,4].sum(5)

      Parameters:
        `self` - an Iterable of values to sum
        `initialValue` - the items in the collection will be summed to this initial value
      Returns:
        The sum of all of the items.
      Since:
        2.2.0

    - #### public static Object sum(Object[] self, Object initialValue)

      Sums the items in an array, adding the result to some initial value.

      Parameters:
        `self` - an array of values to sum
        `initialValue` - the items in the array will be summed to this initial value
      Returns:
        The sum of all of the items.
      Since:
        1.7.1

    - #### public static Object sum(Iterator<Object> self, Object initialValue)

      Sums the items from an Iterator, adding the result to some initial value. This is equivalent to invoking the "plus" method on all items from the Iterator. The iterator will become exhausted of elements after determining the sum value.

      Parameters:
        `self` - an Iterator for the values to add together
        `initialValue` - the items in the collection will be summed to this initial value
      Returns:
        The sum of all of the items
      Since:
        1.5.5

    - #### @Deprecated public static Object sum(Collection self, Closure closure)

      deprecated:
        Use the Iterable version of sum instead
      See Also:
        sum(Iterable, Closure)
      Since:
        1.0

    - #### public static Object sum(Iterable self, Closure closure)

      Sums the result of apply a closure to each item of an Iterable. `coll.sum(closure)` is equivalent to: `coll.collect(closure).sum()`.

          assert 4+6+10+12 == [2,3,5,6].sum() { it * 2 }

      Parameters:
        `self` - an Iterable
        `closure` - a single parameter closure that returns a numeric value.
      Returns:
        The sum of the values returned by applying the closure to each item of the Iterable.
      Since:
        2.2.0

    - #### public static Object sum(Object[] self, Closure closure)

      Sums the result of apply a closure to each item of an array. `array.sum(closure)` is equivalent to: `array.collect(closure).sum()`.

      Parameters:
        `self` - An array
        `closure` - a single parameter closure that returns a numeric value.
      Returns:
        The sum of the values returned by applying the closure to each item of the array.
      Since:
        1.7.1

    - #### public static Object sum(Iterator<Object> self, Closure closure)

      Sums the result of apply a closure to each item returned from an iterator. `iter.sum(closure)` is equivalent to: `iter.collect(closure).sum()`. The iterator will become exhausted of elements after determining the sum value.

      Parameters:
        `self` - An Iterator
        `closure` - a single parameter closure that returns a numeric value.
      Returns:
        The sum of the values returned by applying the closure to each item from the Iterator.
      Since:
        1.7.1

    - #### @Deprecated public static Object sum(Collection self, Object initialValue, Closure closure)

      deprecated:
        Use the Iterable version of sum instead
      See Also:
        sum(Iterable, Object, Closure)
      Since:
        1.5.0

    - #### public static Object sum(Iterable self, Object initialValue, Closure closure)

      Sums the result of applying a closure to each item of an Iterable to some initial value. `coll.sum(initVal, closure)` is equivalent to: `coll.collect(closure).sum(initVal)`.

          assert 50+4+6+10+12 == [2,3,5,6].sum(50) { it * 2 }

      Parameters:
        `self` - an Iterable
        `closure` - a single parameter closure that returns a numeric value.
        `initialValue` - the closure results will be summed to this initial value
      Returns:
        The sum of the values returned by applying the closure to each item of the collection.
      Since:
        1.5.0

    - #### public static Object sum(Object[] self, Object initialValue, Closure closure)

      Sums the result of applying a closure to each item of an array to some initial value. `array.sum(initVal, closure)` is equivalent to: `array.collect(closure).sum(initVal)`.

      Parameters:
        `self` - an array
        `closure` - a single parameter closure that returns a numeric value.
        `initialValue` - the closure results will be summed to this initial value
      Returns:
        The sum of the values returned by applying the closure to each item of the array.
      Since:
        1.7.1

    - #### public static Object sum(Iterator<Object> self, Object initialValue, Closure closure)

      Sums the result of applying a closure to each item of an Iterator to some initial value. `iter.sum(initVal, closure)` is equivalent to: `iter.collect(closure).sum(initVal)`. The iterator will become exhausted of elements after determining the sum value.

      Parameters:
        `self` - an Iterator
        `closure` - a single parameter closure that returns a numeric value.
        `initialValue` - the closure results will be summed to this initial value
      Returns:
        The sum of the values returned by applying the closure to each item from the Iterator.
      Since:
        1.7.1

    - #### public static List<T> tail(List<T> self)

      Returns the items from the List excluding the first item.

          def list = [3, 4, 2]
           assert list.tail() == [4, 2]
           assert list == [3, 4, 2]

      throws:
        NoSuchElementException if the list is empty and you try to access the tail() item.
      Parameters:
        `self` - a List
      Returns:
        a list without its first element
      Since:
        1.5.6

    - #### public static T[] tail(T[] self)

      Returns the items from the Object array excluding the first item.

               String[] strings = ["a", "b", "c"]
               def result = strings.tail()
               assert strings.class.componentType == String

      throws:
        NoSuchElementException if the list is empty and you try to access the tail() item.
      Parameters:
        `self` - an Object array
      Returns:
        an Object array without its first element
      Since:
        1.7.3

    - #### public static List<T> take(List<T> self, int num)

      Returns the first `num` elements from the head of this list.

           def strings = [ 'a', 'b', 'c' ]
           assert strings.take( 0 ) == []
           assert strings.take( 2 ) == [ 'a', 'b' ]
           assert strings.take( 5 ) == [ 'a', 'b', 'c' ]

      Similar to take(Iterable, int) except that it attempts to preserve the type of the original list.
      Parameters:
        `self` - the original list
        `num` - the number of elements to take from this list
      Returns:
        a list consisting of the first `num` elements of this list, or else the whole list if it has less then `num` elements.
      Since:
        1.8.1

    - #### public static T[] take(T[] self, int num)

      Returns the first `num` elements from the head of this array.

           String[] strings = [ 'a', 'b', 'c' ]
           assert strings.take( 0 ) == [] as String[]
           assert strings.take( 2 ) == [ 'a', 'b' ] as String[]
           assert strings.take( 5 ) == [ 'a', 'b', 'c' ] as String[]

      Parameters:
        `self` - the original array
        `num` - the number of elements to take from this array
      Returns:
        an array consisting of the first `num` elements of this array, or else the whole array if it has less then `num` elements.
      Since:
        1.8.1

    - #### public static List<T> take(Iterable<T> self, int num)

      Returns the first `num` elements from the head of this Iterable.

           class AbcIterable implements Iterable {
               Iterator iterator() { "abc".iterator() }
           }
           def abc = new AbcIterable()
           assert abc.take(0) == []
           assert abc.take(1) == ['a']
           assert abc.take(3) == ['a', 'b', 'c']
           assert abc.take(5) == ['a', 'b', 'c']

      Parameters:
        `self` - the original Iterable
        `num` - the number of elements to take from this Iterable
      Returns:
        a List consisting of the first `num` elements from this Iterable, or else all the elements from the Iterable if it has less then `num` elements.
      Since:
        1.8.7

    - #### public static Map<K, V> take(Map<K, V> self, int num)

      Returns a new map containing the first `num` elements from the head of this map. If the map instance does not have ordered keys, then this function could return a random `num` entries. Groovy by default uses LinkedHashMap, so this shouldn't be an issue in the main.

           def strings = [ 'a':10, 'b':20, 'c':30 ]
           assert strings.take( 0 ) == [:]
           assert strings.take( 2 ) == [ 'a':10, 'b':20 ]
           assert strings.take( 5 ) == [ 'a':10, 'b':20, 'c':30 ]

      Parameters:
        `self` - the original map
        `num` - the number of elements to take from this map
      Returns:
        a new map consisting of the first `num` elements of this map, or else the whole map if it has less then `num` elements.
      Since:
        1.8.1

    - #### @SuppressWarnings("unchecked") public static Iterator<T> take(Iterator<T> self, int num)

      Returns an iterator of up to the first `num` elements from this iterator. The original iterator is stepped along by `num` elements.

           def a = 0
           def iter = [ hasNext:{ true }, next:{ a++ } ] as Iterator
           def iteratorCompare( Iterator a, List b ) {
               a.collect { it } == b
           }
           assert iteratorCompare( iter.take( 0 ), [] )
           assert iteratorCompare( iter.take( 2 ), [ 0, 1 ] )
           assert iteratorCompare( iter.take( 5 ), [ 2, 3, 4, 5, 6 ] )

      Parameters:
        `self` - the Iterator
        `num` - the number of elements to take from this iterator
      Returns:
        an iterator consisting of up to the first `num` elements of this iterator.
      Since:
        1.8.1

    - #### @Deprecated public static CharSequence take(CharSequence self, int num)

    - #### public static List<T> takeWhile(List<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition)

      Returns the longest prefix of this list where each element passed to the given closure condition evaluates to true. Similar to takeWhile(Iterable, groovy.lang.Closure) except that it attempts to preserve the type of the original list.

           def nums = [ 1, 3, 2 ]
           assert nums.takeWhile{ it < 1 } == []
           assert nums.takeWhile{ it < 3 } == [ 1 ]
           assert nums.takeWhile{ it < 4 } == [ 1, 3, 2 ]

      Parameters:
        `self` - the original list
        `condition` - the closure that must evaluate to true to continue taking elements
      Returns:
        a prefix of the given list where each element passed to the given closure evaluates to true
      Since:
        1.8.7

    - #### public static List<T> takeWhile(Iterable<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition)

      Returns a List containing the longest prefix of the elements from this Iterable where each element passed to the given closure evaluates to true.

           class AbcIterable implements Iterable {
               Iterator iterator() { "abc".iterator() }
           }
           def abc = new AbcIterable()
           assert abc.takeWhile{ it < 'b' } == ['a']
           assert abc.takeWhile{ it <= 'b' } == ['a', 'b']

      Parameters:
        `self` - an Iterable
        `condition` - the closure that must evaluate to true to continue taking elements
      Returns:
        a List containing a prefix of the elements from the given Iterable where each element passed to the given closure evaluates to true
      Since:
        1.8.7

    - #### public static Map<K, V> takeWhile(Map<K, V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<?> condition)

      Returns the longest prefix of this Map where each entry (or key/value pair) when passed to the given closure evaluates to true.

           def shopping = [milk:1, bread:2, chocolate:3]
           assert shopping.takeWhile{ it.key.size() < 6 } == [milk:1, bread:2]
           assert shopping.takeWhile{ it.value % 2 } == [milk:1]
           assert shopping.takeWhile{ k, v -> k.size() + v <= 7 } == [milk:1, bread:2]

      If the map instance does not have ordered keys, then this function could appear to take random entries. Groovy by default uses LinkedHashMap, so this shouldn't be an issue in the main.
      Parameters:
        `self` - a Map
        `condition` - a 1 (or 2) arg Closure that must evaluate to true for the entry (or key and value) to continue taking elements
      Returns:
        a prefix of the given Map where each entry (or key/value pair) passed to the given closure evaluates to true
      Since:
        1.8.7

    - #### public static T[] takeWhile(T[] self, @ClosureParams(FirstParam.Component.class) Closure condition)

      Returns the longest prefix of this array where each element passed to the given closure evaluates to true.

           def nums = [ 1, 3, 2 ] as Integer[]
           assert nums.takeWhile{ it < 1 } == [] as Integer[]
           assert nums.takeWhile{ it < 3 } == [ 1 ] as Integer[]
           assert nums.takeWhile{ it < 4 } == [ 1, 3, 2 ] as Integer[]

      Parameters:
        `self` - the original array
        `condition` - the closure that must evaluate to true to continue taking elements
      Returns:
        a prefix of the given array where each element passed to the given closure evaluates to true
      Since:
        1.8.7

    - #### public static Iterator<T> takeWhile(Iterator<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition)

      Returns the longest prefix of elements in this iterator where each element passed to the given condition closure evaluates to true.

           def a = 0
           def iter = [ hasNext:{ true }, next:{ a++ } ] as Iterator

           assert [].iterator().takeWhile{ it < 3 }.toList() == []
           assert [1, 2, 3, 4, 5].iterator().takeWhile{ it < 3 }.toList() == [ 1, 2 ]
           assert iter.takeWhile{ it < 5 }.toList() == [ 0, 1, 2, 3, 4 ]

      Parameters:
        `self` - the Iterator
        `condition` - the closure that must evaluate to true to continue taking elements
      Returns:
        a prefix of elements in the given iterator where each element passed to the given closure evaluates to true
      Since:
        1.8.7

    - #### public static void times(Number self, @ClosureParams(value=SimpleType.class,options="int") Closure closure)

      Executes the closure this many times, starting from zero. The current index is passed to the closure each time. Example:

          10.times {
             println it
           }

      Prints the numbers 0 through 9.
      Parameters:
        `self` - a Number
        `closure` - the closure to call a number of times
      Since:
        1.0

    - #### public static String toArrayString(Object[] self)

      Returns the string representation of the given array. The string displays the contents of the array, similar to an array literal, i.e. `{1, 2, "a"}`.

      Parameters:
        `self` - an Object[]
      Returns:
        the string representation
      Since:
        1.0

    - #### public static BigDecimal toBigDecimal(Number self)

      Transform a Number into a BigDecimal

      Parameters:
        `self` - a Number
      Returns:
        an BigDecimal
      Since:
        1.0

    - #### @Deprecated public static BigDecimal toBigDecimal(CharSequence self)

    - #### @Deprecated public static BigDecimal toBigDecimal(String self)

    - #### public static BigInteger toBigInteger(Number self)

      Transform this Number into a BigInteger.

      Parameters:
        `self` - a Number
      Returns:
        an BigInteger
      Since:
        1.0

    - #### @Deprecated public static BigInteger toBigInteger(CharSequence self)

    - #### @Deprecated public static BigInteger toBigInteger(String self)

    - #### public static Boolean toBoolean(Boolean self)

      Identity conversion which returns Boolean.TRUE for a true Boolean and Boolean.FALSE for a false Boolean.

      Parameters:
        `self` - a Boolean
      Returns:
        the original Boolean
      Since:
        1.7.6

    - #### @Deprecated public static Boolean toBoolean(String self)

    - #### @Deprecated public static Character toCharacter(String self)

    - #### public static Double toDouble(Number self)

      Transform a Number into a Double

      Parameters:
        `self` - a Number
      Returns:
        an Double
      Since:
        1.0

    - #### @Deprecated public static Double toDouble(CharSequence self)

    - #### @Deprecated public static Double toDouble(String self)

    - #### public static Float toFloat(Number self)

      Transform a Number into a Float

      Parameters:
        `self` - a Number
      Returns:
        an Float
      Since:
        1.0

    - #### @Deprecated public static Float toFloat(CharSequence self)

    - #### @Deprecated public static Float toFloat(String self)

    - #### public static Integer toInteger(Number self)

      Transform a Number into an Integer

      Parameters:
        `self` - a Number
      Returns:
        an Integer
      Since:
        1.0

    - #### @Deprecated public static Integer toInteger(CharSequence self)

    - #### @Deprecated public static Integer toInteger(String self)

    - #### public static List<T> toList(Collection<T> self)

      Convert a Collection to a List. Always returns a new List even if the Collection is already a List.

      Example usage:

          def x = [1,2,3] as HashSet
           assert x.class == HashSet
           assert x.toList() instanceof List

      Parameters:
        `self` - a collection
      Returns:
        a List
      Since:
        1.0

    - #### public static List<T> toList(Iterator<T> self)

      Convert an iterator to a List. The iterator will become exhausted of elements after making this conversion.

      Parameters:
        `self` - an iterator
      Returns:
        a List
      Since:
        1.5.0

    - #### public static List<T> toList(Iterable<T> self)

      Convert an Iterable to a List. The Iterable's iterator will become exhausted of elements after making this conversion.

      Parameters:
        `self` - an Iterable
      Returns:
        a List
      Since:
        1.8.7

    - #### public static List<T> toList(Enumeration<T> self)

      Convert an enumeration to a List.

      Parameters:
        `self` - an enumeration
      Returns:
        a List
      Since:
        1.5.0

    - #### public static List<T> toList(T[] array)

      Allows conversion of arrays into a mutable List.

      Parameters:
        `array` - an Array of Objects
      Returns:
        the array as a List
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Byte> toList(byte[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - a byte array
      Returns:
        a list containing the contents of this array.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Boolean> toList(boolean[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - a boolean array
      Returns:
        a list containing the contents of this array.
      Since:
        1.6.0

    - #### @SuppressWarnings("unchecked") public static List<Character> toList(char[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - a char array
      Returns:
        a list containing the contents of this array.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Short> toList(short[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - a short array
      Returns:
        a list containing the contents of this array.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Integer> toList(int[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - an int array
      Returns:
        a list containing the contents of this array.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Long> toList(long[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - a long array
      Returns:
        a list containing the contents of this array.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Float> toList(float[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - a float array
      Returns:
        a list containing the contents of this array.
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static List<Double> toList(double[] array)

      Converts this array to a List of the same size, with each element added to the list.

      Parameters:
        `array` - a double array
      Returns:
        a list containing the contents of this array.
      Since:
        1.0

    - #### @Deprecated public static List<CharSequence> toList(CharSequence self)

    - #### @Deprecated public static List<String> toList(String self)

    - #### public static String toListString(Collection self)

      Returns the string representation of the given list. The string displays the contents of the list, similar to a list literal, i.e. `[1, 2, a]`.

      Parameters:
        `self` - a Collection
      Returns:
        the string representation
      Since:
        1.0

    - #### public static String toListString(Collection self, int maxSize)

      Returns the string representation of the given list. The string displays the contents of the list, similar to a list literal, i.e. `[1, 2, a]`.

      Parameters:
        `self` - a Collection
        `maxSize` - stop after approximately this many characters and append '...'
      Returns:
        the string representation
      Since:
        1.7.3

    - #### public static Long toLong(Number self)

      Transform a Number into a Long

      Parameters:
        `self` - a Number
      Returns:
        an Long
      Since:
        1.0

    - #### @Deprecated public static Long toLong(CharSequence self)

    - #### @Deprecated public static Long toLong(String self)

    - #### public static char toLowerCase(Character self)

      Converts the character to lowercase. Synonym for 'Character.toLowerCase(this)'.

      Parameters:
        `self` - a Character to convert
      Returns:
        the lowercase equivalent of the character, if any; otherwise, the character itself.
      See Also:
        Character.isLowerCase
        String.toLowerCase
      Since:
        1.5.7

    - #### public static String toMapString(Map self)

      Returns the string representation of this map. The string displays the contents of the map, i.e. `[one:1, two:2, three:3]`.

      Parameters:
        `self` - a Map
      Returns:
        the string representation
      Since:
        1.0

    - #### public static String toMapString(Map self, int maxSize)

      Returns the string representation of this map. The string displays the contents of the map, i.e. `[one:1, two:2, three:3]`.

      Parameters:
        `self` - a Map
        `maxSize` - stop after approximately this many characters and append '...'
      Returns:
        the string representation
      Since:
        1.0

    - #### @SuppressWarnings("unchecked") public static Set<Byte> toSet(byte[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - a byte array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### @SuppressWarnings("unchecked") public static Set<Boolean> toSet(boolean[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - a boolean array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### @SuppressWarnings("unchecked") public static Set<Character> toSet(char[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - a char array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### @SuppressWarnings("unchecked") public static Set<Short> toSet(short[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - a short array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### @SuppressWarnings("unchecked") public static Set<Integer> toSet(int[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - an int array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### @SuppressWarnings("unchecked") public static Set<Long> toSet(long[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - a long array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### @SuppressWarnings("unchecked") public static Set<Float> toSet(float[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - a float array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### @SuppressWarnings("unchecked") public static Set<Double> toSet(double[] array)

      Converts this array to a Set, with each unique element added to the set.

      Parameters:
        `array` - a double array
      Returns:
        a set containing the unique contents of this array.
      Since:
        1.8.0

    - #### public static Set<T> toSet(Collection<T> self)

      Convert a Collection to a Set. Always returns a new Set even if the Collection is already a Set.

      Example usage:

           def result = [1, 2, 2, 2, 3].toSet()
           assert result instanceof Set
           assert result == [1, 2, 3] as Set

      Parameters:
        `self` - a collection
      Returns:
        a Set
      Since:
        1.8.0

    - #### public static Set<T> toSet(Iterator<T> self)

      Convert an iterator to a Set. The iterator will become exhausted of elements after making this conversion.

      Parameters:
        `self` - an iterator
      Returns:
        a Set
      Since:
        1.8.0

    - #### public static Set<T> toSet(Enumeration<T> self)

      Convert an enumeration to a Set.

      Parameters:
        `self` - an enumeration
      Returns:
        a Set
      Since:
        1.8.0

    - #### @Deprecated public static Set<CharSequence> toSet(CharSequence self)

    - #### @Deprecated public static Set<String> toSet(String self)

    - #### @Deprecated public static Short toShort(CharSequence self)

    - #### @Deprecated public static Short toShort(String self)

    - #### public static SpreadMap toSpreadMap(Map self)

      Returns a new `SpreadMap` from this map.

      The example below shows the various possible use cases:

           def fn(Map m) { return m.a + m.b + m.c + m.d }

           assert fn(a:1, b:2, c:3, d:4) == 10
           assert fn(a:1, *:[b:2, c:3], d:4) == 10
           assert fn([a:1, b:2, c:3, d:4].toSpreadMap()) == 10
           assert fn((['a', 1, 'b', 2, 'c', 3, 'd', 4] as Object[]).toSpreadMap()) == 10
           assert fn(['a', 1, 'b', 2, 'c', 3, 'd', 4].toSpreadMap()) == 10
           assert fn(['abcd'.toList(), 1..4].transpose().flatten().toSpreadMap()) == 10

      Note that toSpreadMap() is not normally used explicitly but under the covers by Groovy.
      Parameters:
        `self` - a map to be converted into a SpreadMap
      Returns:
        a newly created SpreadMap if this map is not null and its size is positive.
      See Also:
        SpreadMap.SpreadMap
      Since:
        1.0

    - #### public static SpreadMap toSpreadMap(Object[] self)

      Creates a spreadable map from this array.

      Parameters:
        `self` - an object array
      Returns:
        a newly created SpreadMap
      See Also:
        SpreadMap.SpreadMap
        toSpreadMap(java.util.Map)
      Since:
        1.0

    - #### public static SpreadMap toSpreadMap(List self)

      Creates a spreadable map from this list.

      Parameters:
        `self` - a list
      Returns:
        a newly created SpreadMap
      See Also:
        SpreadMap.SpreadMap
        toSpreadMap(java.util.Map)
      Since:
        1.8.0

    - #### public static String toString(boolean[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(byte[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(char[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(short[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(int[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(long[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(float[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(double[] self)

      Returns the string representation of the given array.

      Parameters:
        `self` - an array
      Returns:
        the string representation
      Since:
        1.6.0

    - #### public static String toString(AbstractMap self)

      Returns the string representation of the given map.

      Parameters:
        `self` - a Map
      Returns:
        the string representation
      See Also:
        toMapString(java.util.Map)
      Since:
        1.0

    - #### public static String toString(AbstractCollection self)

      Returns the string representation of the given collection. The string displays the contents of the collection, i.e. `[1, 2, a]`.

      Parameters:
        `self` - a Collection
      Returns:
        the string representation
      See Also:
        toListString(java.util.Collection)
      Since:
        1.0

    - #### public static String toString(Object[] self)

      Returns the string representation of this array's contents.

      Parameters:
        `self` - an Object[]
      Returns:
        the string representation
      See Also:
        toArrayString(java.lang.Object[])
      Since:
        1.0

    - #### public static String toString(Object value)

      Create a String representation of this object.

      Parameters:
        `value` - an object
      Returns:
        a string.
      Since:
        1.0

    - #### @Deprecated public static URI toURI(CharSequence self)

    - #### @Deprecated public static URI toURI(String self)

    - #### @Deprecated public static URL toURL(CharSequence self)

    - #### @Deprecated public static URL toURL(String self)

    - #### public static char toUpperCase(Character self)

      Converts the character to uppercase. Synonym for 'Character.toUpperCase(this)'.

      Parameters:
        `self` - a Character to convert
      Returns:
        the uppercase equivalent of the character, if any; otherwise, the character itself.
      See Also:
        Character.isUpperCase
        String.toUpperCase
      Since:
        1.5.7

    - #### @Deprecated public static List<CharSequence> tokenize(CharSequence self)

    - #### @Deprecated public static List<CharSequence> tokenize(CharSequence self, Character token)

    - #### @Deprecated public static List<CharSequence> tokenize(CharSequence self, CharSequence token)

    - #### @Deprecated @SuppressWarnings("unchecked") public static List<String> tokenize(String self)

    - #### @Deprecated public static List<String> tokenize(String self, Character token)

    - #### @Deprecated @SuppressWarnings("unchecked") public static List<String> tokenize(String self, String token)

    - #### @Deprecated public static CharSequence tr(CharSequence self, CharSequence sourceSet, CharSequence replacementSet)

    - #### @Deprecated public static String tr(String self, String sourceSet, String replacementSet)

    - #### @Deprecated public static void transformChar(Reader self, Writer writer, Closure closure)

    - #### @Deprecated public static void transformLine(Reader reader, Writer writer, Closure closure)

    - #### public static List transpose(List self)

      Adds GroovyCollections#transpose(List) as a method on lists. A Transpose Function takes a collection of columns and returns a collection of rows. The first row consists of the first element from each column. Successive rows are constructed similarly.

      Example usage:

          def result = [['a', 'b'], [1, 2]].transpose()
           assert result == [['a', 1], ['b', 2]]

          def result = [['a', 'b'], [1, 2], [3, 4]].transpose()
           assert result == [['a', 1, 3], ['b', 2, 4]]

      Parameters:
        `self` - a List of lists
      Returns:
        a List of the transposed lists
      See Also:
        GroovyCollections.transpose
      Since:
        1.5.0

    - #### @Deprecated public static void traverse(File self, Map<String, Object> options, Closure closure)

    - #### @Deprecated public static void traverse(File self, Closure closure)

    - #### @Deprecated public static void traverse(File self, Map<String, Object> options)

    - #### public static float trunc(Float number, int precision)

      Truncate the value

      Parameters:
        `number` - a Float
        `precision` - the number of decimal places to keep
      Returns:
        the Float truncated to the number of decimal places specified by precision
      Since:
        1.6.0

    - #### public static float trunc(Float number)

      Truncate the value

      Parameters:
        `number` - a Double
      Returns:
        the Double truncated to 0 decimal places (i.e. a synonym for floor)
      Since:
        1.6.0

    - #### public static double trunc(Double number)

      Truncate the value

      Parameters:
        `number` - a Double
      Returns:
        the Double truncated to 0 decimal places (i.e. a synonym for floor)
      Since:
        1.6.4

    - #### public static double trunc(Double number, int precision)

      Truncate the value

      Parameters:
        `number` - a Double
        `precision` - the number of decimal places to keep
      Returns:
        the Double truncated to the number of decimal places specified by precision
      Since:
        1.6.4

    - #### public static Number unaryMinus(Number left)

      Negates the number. Equivalent to the '-' operator when it preceeds a single operand, i.e. `-10`

      Parameters:
        `left` - a Number
      Returns:
        the negation of the number
      Since:
        1.5.0

    - #### public static Number unaryPlus(Number left)

      Returns the number, effectively being a noop for numbers. Operator overloaded form of the '+' operator when it preceeds a single operand, i.e. `+10`

      Parameters:
        `left` - a Number
      Returns:
        the number
      Since:
        2.2.0

    - #### @Deprecated public static CharSequence unexpand(CharSequence self)

    - #### @Deprecated public static CharSequence unexpand(CharSequence self, int tabStop)

    - #### @Deprecated public static String unexpand(String self)

    - #### @Deprecated public static String unexpand(String self, int tabStop)

    - #### @Deprecated public static CharSequence unexpandLine(CharSequence self, int tabStop)

    - #### @Deprecated public static String unexpandLine(String self, int tabStop)

    - #### public static Iterator<T> unique(Iterator<T> self)

      Returns an iterator equivalent to this iterator all duplicated items removed by using the default comparator. The original iterator will become exhausted of elements after determining the unique values. A new iterator for the unique values will be returned.

      Parameters:
        `self` - an Iterator
      Returns:
        the modified Iterator
      Since:
        1.5.5

    - #### public static Collection<T> unique(Collection<T> self)

      Modifies this collection to remove all duplicated items, using the default comparator.

          assert [1,3] == [1,3,3].unique()

      Parameters:
        `self` - a collection
      Returns:
        the now modified collection
      See Also:
        unique(Collection, boolean)
      Since:
        1.0

    - #### public static Collection<T> unique(Collection<T> self, boolean mutate)

      Remove all duplicates from a given Collection using the default comparator. If mutate is true, it works by modifying the original object (and also returning it). If mutate is false, a new collection is returned leaving the original unchanged.

           assert [1,3] == [1,3,3].unique()

           def orig = [1, 3, 2, 3]
           def uniq = orig.unique(false)
           assert orig == [1, 3, 2, 3]
           assert uniq == [1, 3, 2]

      Parameters:
        `self` - a collection
        `mutate` - false will cause a new list containing unique items from the collection to be created, true will mutate collections in place
      Returns:
        the now modified collection
      Since:
        1.8.1

    - #### public static Iterator<T> unique(Iterator<T> self, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      Returns an iterator equivalent to this iterator but with all duplicated items removed by using a Closure to determine duplicate (equal) items. The original iterator will be fully processed after the call.

      If the closure takes a single parameter, the argument passed will be each element, and the closure should return a value used for comparison (either using Comparable.compareTo or Object.equals). If the closure takes two parameters, two items from the Iterator will be passed as arguments, and the closure should return an int value (with 0 indicating the items are not unique).

      Parameters:
        `self` - an Iterator
        `closure` - a Closure used to determine unique items
      Returns:
        the modified Iterator
      Since:
        1.5.5

    - #### public static Collection<T> unique(Collection<T> self, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      A convenience method for making a collection unique using a Closure to determine duplicate (equal) items.

      If the closure takes a single parameter, the argument passed will be each element, and the closure should return a value used for comparison (either using Comparable.compareTo or Object.equals). If the closure takes two parameters, two items from the collection will be passed as arguments, and the closure should return an int value (with 0 indicating the items are not unique).

          assert [1,4] == [1,3,4,5].unique { it % 2 }

          assert [2,3,4] == [2,3,3,4].unique { a, b -> a <=> b }

      Parameters:
        `self` - a Collection
        `closure` - a 1 or 2 arg Closure used to determine unique items
      Returns:
        self without any duplicates
      See Also:
        unique(Collection, boolean, Closure)
      Since:
        1.0

    - #### public static Collection<T> unique(Collection<T> self, boolean mutate, @ClosureParams(value=FromString.class, options={"T","T,T"}) Closure closure)

      A convenience method for making a collection unique using a Closure to determine duplicate (equal) items. If mutate is true, it works on the receiver object and returns it. If mutate is false, a new collection is returned.

      If the closure takes a single parameter, the argument passed will be each element, and the closure should return a value used for comparison (either using Comparable.compareTo or Object.equals). If the closure takes two parameters, two items from the collection will be passed as arguments, and the closure should return an int value (with 0 indicating the items are not unique).

           def orig = [1, 3, 4, 5]
           def uniq = orig.unique(false) { it % 2 }
           assert orig == [1, 3, 4, 5]
           assert uniq == [1, 4]

           def orig = [2, 3, 3, 4]
           def uniq = orig.unique(false) { a, b -> a <=> b }
           assert orig == [2, 3, 3, 4]
           assert uniq == [2, 3, 4]

      Parameters:
        `self` - a Collection
        `mutate` - false will always cause a new list to be created, true will mutate lists in place
        `closure` - a 1 or 2 arg Closure used to determine unique items
      Returns:
        self without any duplicates
      Since:
        1.8.1

    - #### public static Iterator<T> unique(Iterator<T> self, Comparator<T> comparator)

      Returns an iterator equivalent to this iterator with all duplicated items removed by using the supplied comparator.

      Parameters:
        `self` - an Iterator
        `comparator` - a Comparator
      Returns:
        the modified Iterator
      Since:
        1.5.5

    - #### public static Collection<T> unique(Collection<T> self, Comparator<T> comparator)

      Remove all duplicates from a given Collection. Works on the original object (and also returns it). The order of members in the Collection are compared by the given Comparator. For each duplicate, the first member which is returned by the given Collection's iterator is retained, but all other ones are removed. The given Collection's original order is preserved.

           class Person {
               def fname, lname
               String toString() {
                   return fname + " " + lname
               }
           }

           class PersonComparator implements Comparator {
               int compare(Object o1, Object o2) {
                   Person p1 = (Person) o1
                   Person p2 = (Person) o2
                   if (p1.lname != p2.lname)
                       return p1.lname.compareTo(p2.lname)
                   else
                       return p1.fname.compareTo(p2.fname)
               }

               boolean equals(Object obj) {
                   return this.equals(obj)
               }
           }

           Person a = new Person(fname:"John", lname:"Taylor")
           Person b = new Person(fname:"Clark", lname:"Taylor")
           Person c = new Person(fname:"Tom", lname:"Cruz")
           Person d = new Person(fname:"Clark", lname:"Taylor")

           def list = [a, b, c, d]
           List list2 = list.unique(new PersonComparator())
           assert( list2 == list && list == [a, b, c] )

      Parameters:
        `self` - a Collection
        `comparator` - a Comparator
      Returns:
        self the now modified collection without duplicates
      See Also:
        unique(java.util.Collection, boolean, java.util.Comparator)
      Since:
        1.0

    - #### public static Collection<T> unique(Collection<T> self, boolean mutate, Comparator<T> comparator)

      Remove all duplicates from a given Collection. If mutate is true, it works on the original object (and also returns it). If mutate is false, a new collection is returned. The order of members in the Collection are compared by the given Comparator. For each duplicate, the first member which is returned by the given Collection's iterator is retained, but all other ones are removed. The given Collection's original order is preserved.

           class Person {
               def fname, lname
               String toString() {
                   return fname + " " + lname
               }
           }

           class PersonComparator implements Comparator {
               int compare(Object o1, Object o2) {
                   Person p1 = (Person) o1
                   Person p2 = (Person) o2
                   if (p1.lname != p2.lname)
                       return p1.lname.compareTo(p2.lname)
                   else
                       return p1.fname.compareTo(p2.fname)
               }

               boolean equals(Object obj) {
                   return this.equals(obj)
               }
           }

           Person a = new Person(fname:"John", lname:"Taylor")
           Person b = new Person(fname:"Clark", lname:"Taylor")
           Person c = new Person(fname:"Tom", lname:"Cruz")
           Person d = new Person(fname:"Clark", lname:"Taylor")

           def list = [a, b, c, d]
           List list2 = list.unique(false, new PersonComparator())
           assert( list2 != list && list2 == [a, b, c] )

      Parameters:
        `self` - a Collection
        `mutate` - false will always cause a new collection to be created, true will mutate collections in place
        `comparator` - a Comparator
      Returns:
        self the collection without duplicates
      Since:
        1.8.1

    - #### public static void upto(Number self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

      Parameters:
        `self` - a Number
        `to` - another Number to go up to
        `closure` - the closure to call
      Since:
        1.0

    - #### public static void upto(long self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

      Parameters:
        `self` - a long
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void upto(Long self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

      Parameters:
        `self` - a Long
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void upto(float self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

      Parameters:
        `self` - a float
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void upto(Float self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

      Parameters:
        `self` - a Float
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void upto(double self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

      Parameters:
        `self` - a double
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void upto(Double self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

      Parameters:
        `self` - a Double
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void upto(BigInteger self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time. Example:

          0.upto( 10 ) {
             println it
           }

      Prints numbers 0 to 10
      Parameters:
        `self` - a BigInteger
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static void upto(BigDecimal self, Number to, @ClosureParams(FirstParam.class) Closure closure)

      Iterates from this number up to the given number, inclusive, incrementing by one each time.

          0.1.upto( 10 ) {
             println it
           }

      Prints numbers 0.1, 1.1, 2.1... to 9.1
      Parameters:
        `self` - a BigDecimal
        `to` - the end number
        `closure` - the code to execute for each number
      Since:
        1.0

    - #### public static T use(Object self, Class categoryClass, Closure<T> closure)

      Scoped use method

      Parameters:
        `self` - any Object
        `categoryClass` - a category class to use
        `closure` - the closure to invoke with the category in place
      Returns:
        the value returned from the closure
      Since:
        1.0

    - #### public static T use(Object self, List<Class> categoryClassList, Closure<T> closure)

      Scoped use method with list of categories.

      Parameters:
        `self` - any Object
        `categoryClassList` - a list of category classes
        `closure` - the closure to invoke with the categories in place
      Returns:
        the value returned from the closure
      Since:
        1.0

    - #### public static Object use(Object self, Object[] array)

      Allows you to use a list of categories, specifying the list as varargs. `use(CategoryClass1, CategoryClass2) { ... }` This method saves having to wrap the the category classes in a list.

      Parameters:
        `self` - any Object
        `array` - a list of category classes and a Closure
      Returns:
        the value returned from the closure
      Since:
        1.0

    - #### public static T with(U self, @DelegatesTo(value=DelegatesTo.Target.class, target="self", strategy=Closure.DELEGATE_FIRST) @ClosureParams(FirstParam.class) Closure<T> closure)

      Allows the closure to be called for the object reference self.

      Any method invoked inside the closure will first be invoked on the self reference. For instance, the following method calls to the append() method are invoked on the StringBuilder instance:

           def b = new StringBuilder().with {
             append('foo')
             append('bar')
             return it
           }
           assert b.toString() == 'foobar'

      This is commonly used to simplify object creation, such as this example:

           def p = new Person().with {
             firstName = 'John'
             lastName = 'Doe'
             return it
           }

      Parameters:
        `self` - the object to have a closure act upon
        `closure` - the closure to call on the object
      Returns:
        result of calling the closure
      Since:
        1.5.0

    - #### @Deprecated public static T withDataInputStream(File file, Closure<T> closure)

    - #### @Deprecated public static T withDataOutputStream(File file, Closure<T> closure)

    - #### public static Map<K, V> withDefault(Map<K, V> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure init)

      Wraps a map using the decorator pattern with a wrapper that intercepts all calls to `get(key)`. If an unknown key is found, a default value will be stored into the Map before being returned. The default value stored will be the result of calling the supplied Closure with the key as the parameter to the Closure. Example usage:

           def map = [a:1, b:2].withDefault{ k -> k.toCharacter().isLowerCase() ? 10 : -10 }
           def expected = [a:1, b:2, c:10, D:-10]
           assert expected.every{ e -> e.value == map[e.key] }

           def constMap = [:].withDefault{ 42 }
           assert constMap.foo == 42
           assert constMap.size() == 1

      Parameters:
        `self` - a Map
        `init` - a Closure which is passed the unknown key
      Returns:
        the wrapped Map
      Since:
        1.7.1

    - #### public static List<T> withDefault(List<T> self, Closure init)

      An alias for `withLazyDefault` which decorates a list allowing it to grow when called with index values outside the normal list bounds.

      Parameters:
        `self` - a List
        `init` - a Closure with the target index as parameter which generates the default value
      Returns:
        the decorated List
      See Also:
        withLazyDefault(java.util.List, groovy.lang.Closure)
        withEagerDefault(java.util.List, groovy.lang.Closure)
      Since:
        1.8.7

    - #### public static List<T> withEagerDefault(List<T> self, Closure init)

      Decorates a list allowing it to grow when called with a non-existent index value. When called with such values, the list is grown in size and a default value is placed in the list by calling a supplied `init` Closure. Null values can be stored in the list.

      How it works: The decorated list intercepts all calls to `getAt(index)` and `get(index)`. If an index greater than or equal to the current `size()` is used, the list will grow automatically up to the specified index. Gaps will be filled by calling the `init` Closure. If generating a default value is a costly operation consider using `withLazyDefault`.

      Example usage:

           def list = [0, 1].withEagerDefault{ 42 }
           assert list[0] == 0
           assert list[1] == 1
           assert list[3] == 42   // default value
           assert list == [0, 1, 42, 42]   // gap filled with default value

           // illustrate using the index when generating default values
           def list2 = [5].withEagerDefault{ index -> index * index }
           assert list2[3] == 9
           assert list2 == [5, 1, 4, 9]

           // illustrate what happens with null values
           list2[2] = null
           assert list2[2] == null
           assert list2 == [5, 1, null, 9]

      Parameters:
        `self` - a List
        `init` - a Closure with the target index as parameter which generates the default value
      Returns:
        the wrapped List
      Since:
        1.8.7

    - #### @Deprecated public static Object withInputStream(File file, Closure closure)

    - #### @Deprecated public static T withInputStream(URL url, Closure<T> closure)

    - #### public static List<T> withLazyDefault(List<T> self, Closure init)

      Decorates a list allowing it to grow when called with a non-existent index value. When called with such values, the list is grown in size and a default value is placed in the list by calling a supplied `init` Closure. Subsequent retrieval operations if finding a null value in the list assume it was set as null from an earlier growing operation and again call the `init` Closure to populate the retrieved value; consequently the list can't be used to store null values.

      How it works: The decorated list intercepts all calls to `getAt(index)` and `get(index)`. If an index greater than or equal to the current `size()` is used, the list will grow automatically up to the specified index. Gaps will be filled by `null`. If a default value should also be used to fill gaps instead of `null`, use `withEagerDefault`. If `getAt(index)` or `get(index)` are called and a null value is found, it is assumed that the null value was a consequence of an earlier grow list operation and the `init` Closure is called to populate the value.

      Example usage:

           def list = [0, 1].withLazyDefault{ 42 }
           assert list[0] == 0
           assert list[1] == 1
           assert list[3] == 42   // default value
           assert list == [0, 1, null, 42] // gap filled with null

           // illustrate using the index when generating default values
           def list2 = [5].withLazyDefault{ index -> index * index }
           assert list2[3] == 9
           assert list2 == [5, null, null, 9]
           assert list2[2] == 4
           assert list2 == [5, null, 4, 9]

           // illustrate what happens with null values
           list2[2] = null
           assert list2[2] == 4

      Parameters:
        `self` - a List
        `init` - a Closure with the target index as parameter which generates the default value
      Returns:
        the decorated List
      Since:
        1.8.7

    - #### @Deprecated public static T withObjectInputStream(File file, Closure<T> closure)

    - #### @Deprecated public static T withObjectInputStream(File file, ClassLoader classLoader, Closure<T> closure)

    - #### @Deprecated public static T withObjectInputStream(InputStream inputStream, Closure<T> closure)

    - #### @Deprecated public static T withObjectInputStream(InputStream inputStream, ClassLoader classLoader, Closure<T> closure)

    - #### @Deprecated public static T withObjectOutputStream(File file, Closure<T> closure)

    - #### @Deprecated public static T withObjectOutputStream(OutputStream outputStream, Closure<T> closure)

    - #### @Deprecated public static T withObjectStreams(Socket socket, Closure<T> closure)

    - #### @Deprecated public static Object withOutputStream(File file, Closure closure)

    - #### @Deprecated public static T withPrintWriter(File file, Closure<T> closure)

    - #### @Deprecated public static T withPrintWriter(File file, String charset, Closure<T> closure)

    - #### @Deprecated public static T withPrintWriter(Writer writer, Closure<T> closure)

    - #### @Deprecated public static T withReader(File file, Closure<T> closure)

    - #### @Deprecated public static T withReader(File file, String charset, Closure<T> closure)

    - #### @Deprecated public static T withReader(Reader reader, Closure<T> closure)

    - #### @Deprecated public static T withReader(URL url, Closure<T> closure)

    - #### @Deprecated public static T withReader(URL url, String charset, Closure<T> closure)

    - #### @Deprecated public static T withReader(InputStream in, Closure<T> closure)

    - #### @Deprecated public static T withReader(InputStream in, String charset, Closure<T> closure)

    - #### @Deprecated public static T withStream(InputStream stream, Closure<T> closure)

    - #### @Deprecated public static T withStream(OutputStream os, Closure<T> closure)

    - #### @Deprecated public static T withStreams(Socket socket, Closure<T> closure)

    - #### public static Object withTraits(Object self, Class<?>... traits)

      Dynamically wraps an instance into something which implements the supplied trait classes. It is guaranteed that the returned object will implement the trait interfaces, but the original type of the object is lost (replaced with a proxy).

      Parameters:
        `self` - object to be wrapped
        `traits` - a list of trait classes
      Returns:
        a proxy implementing the trait interfaces

    - #### @Deprecated public static T withWriter(File file, Closure<T> closure)

    - #### @Deprecated public static T withWriter(File file, String charset, Closure<T> closure)

    - #### @Deprecated public static T withWriter(Writer writer, Closure<T> closure)

    - #### @Deprecated public static T withWriter(OutputStream stream, Closure<T> closure)

    - #### @Deprecated public static T withWriter(OutputStream stream, String charset, Closure<T> closure)

    - #### @Deprecated public static T withWriterAppend(File file, String charset, Closure<T> closure)

    - #### @Deprecated public static T withWriterAppend(File file, Closure<T> closure)

    - #### @Deprecated public static void write(Writer self, Writable writable)

    - #### @Deprecated public static void write(File file, String text)

    - #### @Deprecated public static void write(File file, String text, String charset)

    - #### @Deprecated public static void writeLine(BufferedWriter writer, String line)

    - #### public static BitSet xor(BitSet left, BitSet right)

      Bitwise XOR together two BitSets. Called when the '^' operator is used between two bit sets.

      Parameters:
        `left` - a BitSet
        `right` - another BitSet to bitwise AND
      Returns:
        the bitwise XOR of both BitSets
      Since:
        1.5.0

    - #### public static Number xor(Number left, Number right)

      Bitwise XOR together two Numbers. Called when the '|' operator is used.

      Parameters:
        `left` - a Number
        `right` - another Number to bitwse XOR
      Returns:
        the bitwise XOR of both Numbers
      Since:
        1.0

    - #### public static Boolean xor(Boolean left, Boolean right)

      Exclusive disjunction of two boolean operators

      Parameters:
        `left` - left operator
        `right` - right operator
      Returns:
        result of exclusive disjunction
      Since:
        1.0