Overview | Package | Class | Tree | Deprecated | Index | Help
| Groovy JDK

A B C D E F G H I J L M N O P R S T U W X

## A

abs() - Method in class java.lang.Double
  Get the absolute value
accept(groovy.lang.Closure closure) - Method in class java.net.ServerSocket
  Accepts a connection and passes the resulting Socket to the closure which runs in a new Thread.
addShutdownHook(groovy.lang.Closure closure) - Method in class java.lang.Object
  Allows the usage of addShutdownHook without getting the runtime first.
and(java.lang.Boolean right) - Method in class java.lang.Boolean
  Logical conjunction of two boolean operators.
and(java.lang.Number right) - Method in class java.lang.Number
  Bitwise AND together two Numbers.
and(java.util.BitSet right) - Method in class java.util.BitSet
  Bitwise AND together two BitSets.
any() - Method in class java.lang.Object
  Iterates over the elements of a collection, and checks whether at least one element is true according to the Groovy Truth.
any(groovy.lang.Closure closure) - Method in class java.lang.Object
  Iterates over the contents of an object or collection, and checks whether a predicate is valid for at least one element.
append(byte[] bytes) - Method in class java.io.File
  Append bytes to the end of a File.
append(java.io.InputStream stream) - Method in class java.io.File
  Append binary data to the file.
append(java.lang.Object text) - Method in class java.io.File
  Append the text at the end of the File.
append(java.lang.Object text, java.lang.String charset) - Method in class java.io.File
  Append the text at the end of the File, using a specified encoding.
asBoolean() - Method in class java.lang.Boolean
  Coerce an Boolean instance to a boolean value.
asImmutable() - Method in class java.util.Collection
  A convenience method for creating an immutable Collection.
asList() - Method in class java.util.Collection
  Converts this collection to a List.
asSynchronized() - Method in class java.util.Collection
  A convenience method for creating a synchronized Collection.
asType(java.lang.Class c) - Method in class java.lang.Number
  Transform this number to a the given type, using the 'as' operator.
asType(java.lang.Class clazz) - Method in class java.lang.Object[]
  Converts the given array to either a List, Set, or SortedSet.
asType(java.lang.Class type) - Method in class java.lang.Object
  Converts a given object to a type.
asWritable() - Method in class java.io.File
  Converts this File to a {@link Writable}.
asWritable(java.lang.String encoding) - Method in class java.io.File
  Allows a file to return a Writable implementation that can output itself to a Writer stream.

## B

bitwiseNegate() - Method in class java.lang.String
  Turns a String into a regular expression Pattern

## C

center(java.lang.Number numberOfChars) - Method in class java.lang.String
  Center a String and pad it with spaces appended around it
center(java.lang.Number numberOfChars, java.lang.String padding) - Method in class java.lang.String
  Center a String and pad it with the characters appended around it
collect(groovy.lang.Closure closure) - Method in class java.lang.Object
  Iterates through this object transforming each value into a new value using the closure as a transformer, returning a list of transformed values.
collect(java.util.Collection collection, groovy.lang.Closure closure) - Method in class java.lang.Object
  Iterates through this object transforming each object into a new value using the closure as a transformer and adding it to the collection, returning the resulting collection.
collectAll(groovy.lang.Closure closure) - Method in class java.util.Collection
  Recursively iterates through this collection transforming each non-Collection value into a new value using the closure as a transformer.
collectAll(java.util.Collection collection, groovy.lang.Closure closure) - Method in class java.util.Collection
  Recursively iterates through this collection transforming each non-Collection value into a new value using the closure as a transformer.
combinations() - Method in class java.util.Collection
  Adds GroovyCollections#combinations(Collection) as a method on collections.
compareTo(java.lang.Character right) - Method in class java.lang.Character
  Compare two Characters.
compareTo(java.lang.Number right) - Method in class java.lang.Character
  Compare a Character and a Number.
consumeProcessErrorStream(java.io.OutputStream err) - Method in class java.lang.Process
  Gets the error stream from a process and reads it to keep the process from blocking due to a full buffer.
consumeProcessErrorStream(java.io.Writer err) - Method in class java.lang.Process
  Gets the error stream from a process and reads it to keep the process from blocking due to a full buffer.
consumeProcessErrorStream(java.lang.StringBuffer error) - Method in class java.lang.Process
  Gets the error stream from a process and reads it to keep the process from blocking due to a full buffer.
consumeProcessOutput() - Method in class java.lang.Process
  Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
consumeProcessOutput(java.io.OutputStream output, java.io.OutputStream error) - Method in class java.lang.Process
  Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
consumeProcessOutput(java.lang.StringBuffer output, java.lang.StringBuffer error) - Method in class java.lang.Process
  Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
consumeProcessOutputStream(java.io.OutputStream output) - Method in class java.lang.Process
  Gets the output stream from a process and reads it to keep the process from blocking due to a full output buffer.
consumeProcessOutputStream(java.io.Writer output) - Method in class java.lang.Process
  Gets the output stream from a process and reads it to keep the process from blocking due to a full output buffer.
consumeProcessOutputStream(java.lang.StringBuffer output) - Method in class java.lang.Process
  Gets the output stream from a process and reads it to keep the process from blocking due to a full output buffer.
contains(java.lang.String text) - Method in class java.lang.String
  Provide an implementation of contains() like {@link Collection#contains(Object)} to make Strings more polymorphic.
count(java.lang.Object value) - Method in class java.lang.Object[]
  Counts the number of occurrences of the given value inside this array.
count(java.lang.String text) - Method in class java.lang.String
  Count the number of occurencies of a substring.

## D

decodeBase64() - Method in class java.lang.String
  Decode the String from Base64 into a byte array.
deleteDir() - Method in class java.io.File
  Deletes a directory with all contained files and subdirectories.
denormalize() - Method in class java.lang.String
  Return a String with lines (separated by LF, CR/LF, or CR) terminated by the platform specific line separator.
disjoint(java.util.Collection right) - Method in class java.util.Collection
  Returns `true` if the intersection of two collections is empty.
div(java.lang.Character right) - Method in class java.lang.Character
  Divide one Character by another.
div(java.lang.Number right) - Method in class java.lang.Character
  Divide a Character by a Number.
downto(java.lang.Number to, groovy.lang.Closure closure) - Method in class java.lang.Double
  Iterates from this number down to the given number, inclusive, decrementing by one each time.
dump() - Method in class java.lang.Object
  Generates a detailed dump string of an object showing its class, hashCode and fields.

## E

each(groovy.lang.Closure closure) - Method in class java.util.Map
  Allows a Map to be iterated through using a closure.
eachByte(groovy.lang.Closure closure) - Method in class java.lang.Byte[]
  Traverse through each byte of this Byte array.
eachDir(groovy.lang.Closure closure) - Method in class java.io.File
  Invokes the closure for each subdirectory in this directory, ignoring regular files.
eachDirMatch(java.lang.Object filter, groovy.lang.Closure closure) - Method in class java.io.File
  Invokes the closure for each subdirectory whose name (dir.name) matches the given filter in the given directory - calling the isCase() method to determine if a match occurs.
eachDirRecurse(groovy.lang.Closure closure) - Method in class java.io.File
  Invokes the closure for each descendant directory of this directory.
eachFile(groovy.lang.Closure closure) - Method in class java.io.File
  Invokes the closure for each 'child' file in this 'parent' folder/directory.
eachFileMatch(java.lang.Object filter, groovy.lang.Closure closure) - Method in class java.io.File
  Invokes the closure for each file whose name (file.name) matches the given filter in the given directory - calling the isCase() method to determine if a match occurs.
eachFileRecurse(groovy.lang.Closure closure) - Method in class java.io.File
  Invokes the closure for each descendant file in this directory.
eachLine(groovy.lang.Closure closure) - Method in class java.lang.String
  Iterates through this String line by line.
eachLine(int firstLine, groovy.lang.Closure closure) - Method in class java.lang.String
  Iterates through this String line by line.
eachLine(java.lang.String charset, groovy.lang.Closure closure) - Method in class java.io.InputStream
  Iterates through this stream reading with the provided charset, passing each line to the given 1 or 2 arg closure.
eachLine(java.lang.String charset, int firstLine, groovy.lang.Closure closure) - Method in class java.io.InputStream
  Iterates through this stream reading with the provided charset, passing each line to the given 1 or 2 arg closure.
eachMatch(java.lang.String regex, groovy.lang.Closure closure) - Method in class java.lang.String
  Process each regex group matched substring of the given string.
eachMatch(java.util.regex.Pattern pattern, groovy.lang.Closure closure) - Method in class java.lang.String
  Process each regex group matched substring of the given pattern.
eachObject(groovy.lang.Closure closure) - Method in class java.io.File
  Iterates through the given file object by object.
eachPermutation(groovy.lang.Closure closure) - Method in class java.util.Collection
  Iterates over all permutations of a collection, running a closure for each iteration.
eachWithIndex(groovy.lang.Closure closure) - Method in class java.lang.Object
  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.
encodeBase64() - Method in class java.lang.Byte[]
  Produce a Writable object which writes the Base64 encoding of the byte array.
encodeBase64(boolean chunked) - Method in class java.lang.Byte[]
  Produce a Writable object which writes the Base64 encoding of the byte array.
equals(int[] right) - Method in class primitive-types.int[]
  Compare the contents of this array to the contents of the given array.
equals(java.lang.Object[] right) - Method in class java.util.List
  Determines if the contents of this list are equal to the contents of the given array in the same order.
equals(java.util.List right) - Method in class java.lang.Object[]
  Determines if the contents of this array are equal to the contents of the given list, in the same order.
every() - Method in class java.lang.Object
  Iterates over every element of a collection, and checks whether all elements are `true` according to the Groovy Truth.
every(groovy.lang.Closure closure) - Method in class java.lang.Object
  Used to determine if the given predicate closure is valid (i.e.
execute() - Method in class java.lang.String
  Executes the given string as a command line process.
execute(java.lang.String[] envp, java.io.File dir) - Method in class java.lang.String
  Executes the command specified by the `self` with environments `envp` under the working directory `dir`.
execute(java.util.List envp, java.io.File dir) - Method in class java.lang.String
  Executes the command specified by the `self` with environments `envp` under the working directory `dir`.

## F

filterLine(groovy.lang.Closure closure) - Method in class java.io.File
  Filters the lines of a File and creates a Writeable in return to stream the filtered lines.
filterLine(groovy.lang.Closure predicate) - Method in class java.io.InputStream
  Filter lines from an input stream using a closure predicate.
filterLine(java.io.Writer writer, groovy.lang.Closure closure) - Method in class java.io.File
  Filter the lines from this File, and write them to the given writer based on the given closure predicate.
filterLine(java.io.Writer writer, groovy.lang.Closure predicate) - Method in class java.io.InputStream
  Uses a closure to filter lines from this InputStream and pass them to the given writer.
find(groovy.lang.Closure closure) - Method in class java.lang.Object
  Finds the first value matching the closure condition
find(java.lang.String regex) - Method in class java.lang.String
  Finds the first occurrence of a regular expression String within a String.
find(java.lang.String regex, groovy.lang.Closure closure) - Method in class java.lang.String
  Finds the first occurrence of a regular expression String within a String.
find(java.util.regex.Pattern pattern) - Method in class java.lang.String
  Finds the first occurrence of a compiled regular expression Pattern within a String.
find(java.util.regex.Pattern pattern, groovy.lang.Closure closure) - Method in class java.lang.String
  Finds the first occurrence of a compiled regular expression Pattern within a String.
findAll(groovy.lang.Closure closure) - Method in class java.lang.Object
  Finds all items matching the closure condition.
findAll(java.lang.String regex) - Method in class java.lang.String
  Finds all occurrences of a regular expression string within a String.
findAll(java.lang.String regex, groovy.lang.Closure closure) - Method in class java.lang.String
  Finds all occurrences of a regular expression string within a String.
findAll(java.util.regex.Pattern pattern) - Method in class java.lang.String
  Finds all occurrences of a regular expression Pattern within a String.
findAll(java.util.regex.Pattern pattern, groovy.lang.Closure closure) - Method in class java.lang.String
  Finds all occurrences of a compiled regular expression Pattern within a String.
findIndexOf(groovy.lang.Closure closure) - Method in class java.lang.Object
  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.
findIndexOf(int startIndex, groovy.lang.Closure closure) - Method in class java.lang.Object
  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.
findIndexValues(groovy.lang.Closure closure) - Method in class java.lang.Object
  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.
findIndexValues(java.lang.Number startIndex, groovy.lang.Closure closure) - Method in class java.lang.Object
  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.
findLastIndexOf(groovy.lang.Closure closure) - Method in class java.lang.Object
  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.
findLastIndexOf(int startIndex, groovy.lang.Closure closure) - Method in class java.lang.Object
  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.
first() - Method in class java.util.List
  Returns the first item from the List.
flatten() - Method in class java.lang.Object[]
  Flatten an array.
flatten(groovy.lang.Closure flattenUsing) - Method in class java.util.Collection
  Flatten a collection.
format(java.lang.String format) - Method in class java.util.Date

  Create a String representation of this date according to the given format pattern.

format(java.lang.String pattern) - Method in class java.util.Calendar

  Shortcut for {@link SimpleDateFormat} to output a String representation of this calendar instance.

## G

get(K key, V defaultValue) - Method in class java.util.Map
  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.
getAt(K key) - Method in class java.util.Map
  Support the subscript operator for a Map.
getAt(groovy.lang.EmptyRange range) - Method in class java.lang.CharSequence
  Support the range subscript operator for CharSequence or StringBuffer with EmptyRange
getAt(groovy.lang.IntRange range) - Method in class java.lang.CharSequence
  Support the range subscript operator for CharSequence or StringBuffer with IntRange
getAt(groovy.lang.ObjectRange range) - Method in class primitive-types.T[]
getAt(groovy.lang.Range range) - Method in class java.lang.CharSequence
  Support the range subscript operator for CharSequence
getAt(int field) - Method in class java.util.Date
  Support the subscript operator for a Date.
getAt(int idx) - Method in class java.util.List
  Support the subscript operator for a List.
getAt(int index) - Method in class java.lang.CharSequence
  Support the subscript operator for CharSequence.
getAt(java.lang.String property) - Method in class java.lang.Object
  Allows the subscript operator to be used to lookup dynamic property values.
getAt(java.util.Collection indices) - Method in class java.lang.CharSequence
  Select a List of characters from a CharSequence using a Collection to identify the indices to be selected.
getBundle(java.lang.String bundleName) - Method in class java.util.ResourceBundle
  Works exactly like ResourceBundle.getBundle(String).
getBundle(java.lang.String bundleName, java.util.Locale locale) - Method in class java.util.ResourceBundle
  Works exactly like ResourceBundle.getBundle(String, Locale).
getChars() - Method in class java.lang.String
  Converts the given String into an array of characters.
getCount() - Method in class java.util.regex.Matcher
  Find the number of Strings matched to the given Matcher.
getDateString() - Method in class java.util.Date

  Return a string representation of the 'day' portion of this date according to the locale-specific {@link DateFormat#SHORT} default format.

getDateTimeString() - Method in class java.util.Date

  Return a string representation of the date and time time portion of this Date instance, according to the locale-specific format used by {@link DateFormat}.

getErr() - Method in class java.lang.Process
  An alias method so that a process appears similar to System.out, System.in, System.err; you can use process.in, process.out, process.err in a similar fashion.
getIn() - Method in class java.lang.Process
  An alias method so that a process appears similar to System.out, System.in, System.err; you can use process.in, process.out, process.err in a similar fashion.
getLastMatcher() - Method in class java.util.regex.Matcher
  Get the last hidden matcher that the system used to do a match.
getMetaClass() - Method in class java.lang.Class
  Adds a "metaClass" property to all class objects so you can use the syntax `String.metaClass.myMethod = { println "foo" }`
getMetaPropertyValues() - Method in class java.lang.Object
  Retrieves the list of {@link MetaProperty} objects for 'self' and wraps it in a list of {@link PropertyValue} objects that additionally provide the value for each property of 'self'.
getOut() - Method in class java.lang.Process
  An alias method so that a process appears similar to System.out, System.in, System.err; you can use process.in, process.out, process.err in a similar fashion.
getProperties() - Method in class java.lang.Object
  Convenience method that calls {@link #getMetaPropertyValues(Object)}(self) and provides the data in form of simple key/value pairs, i.e.
getRootLoader() - Method in class java.lang.ClassLoader
  Iterates through the classloader parents until it finds a loader with a class named "org.codehaus.groovy.tools.RootLoader".
getText() - Method in class java.lang.Process
  Read the text of the output stream of the Process.
getText(java.lang.String charset) - Method in class java.io.File
  Read the content of the File using the specified encoding and return it as a String.
getTimeString() - Method in class java.util.Date

  Return a string representation of the time portion of this date according to the locale-specific {@link DateFormat#MEDIUM} default format.

grep(java.lang.Object filter) - Method in class java.lang.Object
  Iterates over every element of the collection and returns each item that matches the given filter - calling the `{@link #isCase(Object,Object)}` method used by switch statements.
groupBy(groovy.lang.Closure closure) - Method in class java.util.Collection
  Sorts all collection members into groups determined by the supplied mapping closure.
groupEntriesBy(groovy.lang.Closure closure) - Method in class java.util.Map
  Groups all map entries into groups determined by the supplied mapping closure.

## H

hasGroup() - Method in class java.util.regex.Matcher
  Check whether a Matcher contains a group or not.
hasProperty(java.lang.String name) - Method in class java.lang.Object

  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

head() - Method in class java.util.List
  Returns the first item from the List.

## I

identity(groovy.lang.Closure closure) - Method in class java.lang.Object
  Allows the closure to be called for the object reference self synonym for 'with()'.
inject(java.lang.Object initialValue, groovy.lang.Closure closure) - Method in class java.lang.Object[]
  Iterates through the given array of objects, passing in the initial value to the closure along with the current iterated item then passing into the next iteration the value of the previous closure.
inject(java.lang.Object value, groovy.lang.Closure closure) - Method in class java.lang.Object
  Iterates through the given object, passing in the initial value to the closure along with the current iterated item then passing into the next iteration the value of the previous closure.
inspect() - Method in class java.lang.Object
  Inspects returns the String that matches what would be typed into a terminal to create this object.
intdiv(java.lang.Character right) - Method in class java.lang.Character
  Integer Divide two Characters.
intdiv(java.lang.Number right) - Method in class java.lang.Character
  Integer Divide a Character by a Number.
intersect(java.util.Collection right) - Method in class java.util.Collection
  Create a Collection composed of the intersection of both collections.
invokeMethod(java.lang.String method, java.lang.Object arguments) - Method in class java.lang.Object
  Provide a dynamic method invocation method which can be overloaded in classes to implement dynamic proxies easily.
is(java.lang.Object other) - Method in class java.lang.Object
  Identity check.
isBigDecimal() - Method in class java.lang.String
  Determine if a String can be parsed into a BigDecimal.
isBigInteger() - Method in class java.lang.String
  Determine if a String can be parsed into a BigInteger.
isCase(java.lang.Number switchValue) - Method in class java.lang.Number
  Special 'case' implementation for all numbers, which delegates to the `compareTo()` method for comparing numbers of different types.
isCase(java.lang.Object switchValue) - Method in class java.lang.Class
  Special 'Case' implementation for Class, which allows testing for a certain class in a switch statement.
isDigit() - Method in class java.lang.Character
  Determines if a character is a digit.
isDouble() - Method in class java.lang.String
  Determine if a String can be parsed into a Double.
isFloat() - Method in class java.lang.String
  Determine if a String can be parsed into a Float.
isInteger() - Method in class java.lang.String
  Determine if a String can be parsed into an Integer.
isLetter() - Method in class java.lang.Character
  Determines if a character is a letter.
isLetterOrDigit() - Method in class java.lang.Character
  Determines if a character is a letter or digit.
isLong() - Method in class java.lang.String
  Determine if a String can be parsed into a Long.
isLowerCase() - Method in class java.lang.Character
  Determine if a Character is lowercase.
isNumber() - Method in class java.lang.String
  Determine if a String can be parsed into a Number.
isUpperCase() - Method in class java.lang.Character
  Determine if a Character is uppercase.
isWhitespace() - Method in class java.lang.Character
  Determines if a character is a whitespace character.
iterator() - Method in class java.lang.Object
  Attempts to create an Iterator for the given object by first converting it to a Collection.

## J

join(java.lang.String separator) - Method in class java.lang.Object[]
  Concatenates the `toString()` representation of each items in this array, with the given String as a separator between each item.

## L

last() - Method in class java.util.List
  Returns the last item from the List.
leftShift(T value) - Method in class java.util.Collection
  Overloads the left shift operator to provide an easy way to append objects to a Collection.
leftShift(byte[] bytes) - Method in class java.io.File
  Write bytes to a File.
leftShift(byte[] value) - Method in class java.lang.Process
  Overloads the left shift operator to provide an append mechanism to pipe into a Process
leftShift(java.io.InputStream data) - Method in class java.io.File
  Append binary data to the file.
leftShift(java.io.InputStream in) - Method in class java.io.OutputStream
  Pipe an InputStream into an OutputStream for efficient stream copying.
leftShift(java.lang.Number operand) - Method in class java.lang.Number
  Implementation of the left shift operator for integral types.
leftShift(java.lang.Object text) - Method in class java.io.File
  Write the text to the File.
leftShift(java.lang.Object value) - Method in class java.lang.Process
  Overloads the left shift operator (<<) to provide an append mechanism to pipe data to a Process.
leftShift(java.util.Map$Entry entry) - Method in class java.util.Map
  Overloads the left shift operator to provide an easy way to append Map.Entry values to a Map.

## M

matches(java.util.regex.Pattern pattern) - Method in class java.lang.String
  Tells whether or not self matches the given compiled regular expression Pattern.
max() - Method in class java.util.Collection
  Adds max() method to Collection objects.
max(groovy.lang.Closure closure) - Method in class java.util.Collection
  Selects the maximum value found in the collection using the closure to determine the correct ordering.
max(java.util.Comparator comparator) - Method in class java.util.Collection
  Selects the maximum value found in the collection using the given comparator.
metaClass(groovy.lang.Closure closure) - Method in class java.lang.Class
  Sets/updates the metaclass for a given class to a closure.
min() - Method in class java.util.Collection
  Adds min() method to Collection objects.
min(groovy.lang.Closure closure) - Method in class java.util.Collection
  Selects the minimum value found in the collection using the closure to determine the correct ordering.
min(java.util.Comparator comparator) - Method in class java.util.Collection
  Selects the minimum value found in the collection using the given comparator.
minus(T[] removeMe) - Method in class primitive-types.T[]
  Create an array composed of the elements of the first array minus the elements of the given array.
minus(int days) - Method in class java.util.Date
  Subtract a number of days from this date and returns the new date.
minus(java.lang.Character right) - Method in class java.lang.Character
  Subtract one Character from another.
minus(java.lang.Number right) - Method in class java.lang.Character
  Subtract a Number from a Character.
minus(java.lang.Object operand) - Method in class java.util.List
  Create a new List composed of the elements of the first list minus the operand.
minus(java.lang.Object target) - Method in class java.lang.String
  Remove a part of a String.
minus(java.util.Calendar then) - Method in class java.util.Calendar
  Subtract another date from this one and return the number of days of the difference.
minus(java.util.Collection operands) - Method in class java.util.Set
  Create a Set composed of the elements of the first set minus the elements of the given collection.
minus(java.util.Collection removeMe) - Method in class java.util.List
  Create a List composed of the elements of the first list minus the elements of the given collection.
minus(java.util.Date then) - Method in class java.util.Date
  Subtract another Date from this one and return the number of days of the difference.
mixin(java.lang.Class categoryClass) - Method in class java.lang.Class
  Extend class globally with category methods.
mixin(java.lang.Class[] categoryClass) - Method in class java.lang.Class
  Extend class globally with category methods.
mixin(java.util.List categoryClasses) - Method in class java.lang.Class
  Extend class globally with category methods.
mod(java.lang.Number right) - Method in class java.lang.Number
  Performs a division modulus operation.
multiply(java.lang.Character right) - Method in class java.lang.Character
  Multiply two Characters.
multiply(java.lang.Double right) - Method in class java.math.BigDecimal
  Multiply a BigDecimal and a Double.
multiply(java.lang.Number factor) - Method in class java.lang.String
  Repeat a String a certain number of times.
multiply(java.lang.Number right) - Method in class java.lang.Character
  Multiply a Character by a Number.
multiply(java.math.BigInteger right) - Method in class java.math.BigDecimal
  Multiply a BigDecimal and a BigInteger.

## N

newDataInputStream() - Method in class java.io.File
  Create a data input stream for this file
newDataOutputStream() - Method in class java.io.File
  Creates a new data output stream for this file.
newInputStream() - Method in class java.io.File
  Creates a buffered input stream for this file.
newInstance() - Method in class java.lang.Class
  Convenience method to dynamically create a new instance of this class.
newInstance(java.lang.Object[] args) - Method in class java.lang.Class
  Helper to construct a new instance from the given arguments.
newObjectInputStream() - Method in class java.io.File
  Create an object input stream for this file.
newObjectInputStream(java.lang.ClassLoader classLoader) - Method in class java.io.File
  Create an object input stream for this file using the given class loader.
newObjectOutputStream() - Method in class java.io.File
  Create an object output stream for this file.
newOutputStream() - Method in class java.io.File
  Create a buffered output stream for this file.
newPrintWriter() - Method in class java.io.File
  Create a new PrintWriter for this file.
newPrintWriter(java.lang.String charset) - Method in class java.io.File
  Create a new PrintWriter for this file, using specified charset.
newReader() - Method in class java.io.File
  Create a buffered reader for this file.
newReader(java.lang.String charset) - Method in class java.io.File
  Create a buffered reader for this file, using the specified charset as the encoding.
newWriter() - Method in class java.io.File
  Create a buffered writer for this file.
newWriter(boolean append) - Method in class java.io.File
  Creates a buffered writer for this file, optionally appending to the existing file content.
newWriter(java.lang.String charset) - Method in class java.io.File
  Creates a buffered writer for this file, writing data using the given encoding.
newWriter(java.lang.String charset, boolean append) - Method in class java.io.File
  Helper method to create a buffered writer for a file.
next() - Method in class java.lang.Character
  Increment a Character by one.
normalize() - Method in class java.lang.String
  Return a String with linefeeds and carriage returns normalized to linefeeds.
numberAwareCompareTo(java.lang.Comparable other) - Method in class java.lang.Comparable
  Provides a method that compares two comparables using Groovy's default number aware comparator.

## O

or(java.lang.Boolean right) - Method in class java.lang.Boolean
  Logical disjunction of two boolean operators
or(java.lang.Number right) - Method in class java.lang.Number
  Bitwise OR together two numbers.
or(java.lang.Process right) - Method in class java.lang.Process
  Overrides the or operator to allow one Process to asynchronously pipe data to another Process.
or(java.util.BitSet right) - Method in class java.util.BitSet
  Bitwise OR together two BitSets.

## P

padLeft(java.lang.Number numberOfChars) - Method in class java.lang.String
  Pad a String with the spaces appended to the left
padLeft(java.lang.Number numberOfChars, java.lang.String padding) - Method in class java.lang.String
  Pad a String with the characters appended to the left
padRight(java.lang.Number numberOfChars) - Method in class java.lang.String
  Pad a String with the spaces appended to the right
padRight(java.lang.Number numberOfChars, java.lang.String padding) - Method in class java.lang.String
  Pad a String with the characters appended to the right
parse(java.lang.String format, java.lang.String input) - Method in class java.util.Date
  Parse a String into a Date instance using the given pattern.
permutations() - Method in class java.util.List
  Finds all permutations of a collection.
pipeTo(java.lang.Process right) - Method in class java.lang.Process
  Allows one Process to asynchronously pipe data to another Process.
plus(T right) - Method in class java.util.Collection
  Create a collection as a union of a Collection and an Object.
plus(int days) - Method in class java.util.Date
  Add a number of days to this date and returns the new date.
plus(java.lang.Character right) - Method in class java.lang.Character
  Add one Character to another.
plus(java.lang.Number right) - Method in class java.lang.Character
  Add a Character and a Number.
plus(java.lang.Object value) - Method in class java.lang.String
  Appends the String representation of the given operand to this string.
plus(java.lang.String right) - Method in class java.lang.Number
  Appends a String to the string representation of this number.
plus(java.lang.String value) - Method in class java.lang.StringBuffer
  Appends a String to this StringBuffer.
plus(java.util.Collection entries) - Method in class java.util.Map
  Returns a new `Map` containing all entries from `self` and `entries`, giving precedence to `entries`.
plus(java.util.Collection right) - Method in class java.util.Collection
  Create a Collection as a union of two collections.
plus(java.util.Map right) - Method in class java.util.Map
  Returns a new `Map` containing all entries from `left` and `right`, giving precedence to `right`.
pop() - Method in class java.util.List
  Removes the last item from the List.
power(java.lang.Number exponent) - Method in class java.lang.Number
  Power of a Number to a certain exponent.
previous() - Method in class java.lang.Character
  Decrement a Character by one.
print(java.io.PrintWriter out) - Method in class java.lang.Object
  Print to a console in interactive format.
print(java.lang.Object value) - Method in class java.lang.Object
  Print a value formatted Groovy style to self if it is a Writer, otherwise to the standard output stream.
printf(java.lang.String format, java.lang.Object arg) - Method in class java.lang.Object
  Prints a formatted string using the specified format string and arguments.
printf(java.lang.String format, java.lang.Object[] values) - Method in class java.lang.Object
  Printf to a console (Only works with JDK1.5 or later).
println() - Method in class java.lang.Object
  Print a linebreak to the standard output stream.
println(java.io.PrintWriter out) - Method in class java.lang.Object
  Print to a console in interactive format.
println(java.lang.Object value) - Method in class java.lang.Object
  Print a value formatted Groovy style (followed by a newline) to self if it is a Writer, otherwise to the standard output stream.
push(T value) - Method in class java.util.List
  Appends an item to the List.
putAll(java.util.Collection entries) - Method in class java.util.Map
  Provides an easy way to append multiple Map.Entry values to a Map.
putAt(K key, V value) - Method in class java.util.Map
  A helper method to allow lists to work with subscript operators
putAt(groovy.lang.EmptyRange range, java.lang.Object value) - Method in class java.lang.StringBuffer
  Support the range subscript operator for StringBuffer.
putAt(groovy.lang.EmptyRange range, java.util.Collection value) - Method in class java.util.List
  A helper method to allow lists to work with subscript operators.
putAt(groovy.lang.IntRange range, boolean value) - Method in class java.util.BitSet
  Support assigning a range of values with a single assignment statement.
putAt(groovy.lang.IntRange range, java.lang.Object value) - Method in class java.lang.StringBuffer
  Support the range subscript operator for StringBuffer.
putAt(groovy.lang.IntRange range, java.util.Collection col) - Method in class java.util.List
  List subscript assignment operator when given a range as the index and the assignment operand is a collection.
putAt(int idx, T value) - Method in class java.util.List
  A helper method to allow lists to work with subscript operators.
putAt(int index, boolean value) - Method in class java.util.BitSet
  Support subscript-style assignment for a BitSet.
putAt(java.lang.String property, java.lang.Object newValue) - Method in class java.lang.Object
  Allows the subscript operator to be used to set dynamically named property values.
putAt(java.util.List splice, java.lang.Object value) - Method in class java.util.List
  A helper method to allow lists to work with subscript operators.
putAt(java.util.List splice, java.util.List values) - Method in class java.util.List
  A helper method to allow lists to work with subscript operators.

## R

readBytes() - Method in class java.io.File
  Reads the content of the file into a byte array.
readLine() - Method in class java.io.InputStream
  Just throws a DeprecationException.
readLines() - Method in class java.lang.String
  Return the lines of a String as a List of Strings.
replaceAll(java.lang.String regex, groovy.lang.Closure closure) - Method in class java.lang.String
  Replaces all occurrences of a captured group by the result of a closure on that text.
replaceAll(java.util.regex.Pattern pattern, java.lang.String replacement) - Method in class java.lang.String
  Replaces all substrings of a String that match the given compiled regular expression with the given replacement.
replaceFirst(java.util.regex.Pattern pattern, java.lang.String replacement) - Method in class java.lang.String
  Replaces the first substring of a String that matches the given compiled regular expression with the given replacement.
respondsTo(java.lang.String name) - Method in class java.lang.Object

  Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of the arguments.

respondsTo(java.lang.String name, java.lang.Object[] argTypes) - Method in class java.lang.Object

  Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types.

reverse() - Method in class java.lang.String
  Creates a new string which is the reverse (backwards) of this string
reverseEach(groovy.lang.Closure closure) - Method in class java.util.List
  Iterate over each element of the list in the reverse order.
rightShift(java.lang.Number operand) - Method in class java.lang.Number
  Implementation of the right shift operator for integral types.
rightShiftUnsigned(java.lang.Number operand) - Method in class java.lang.Number
  Implementation of the right shift (unsigned) operator for integral types.
round() - Method in class java.lang.Double
  Round the value
round(int precision) - Method in class java.lang.Double
  Round the value
runAfter(int delay, groovy.lang.Closure closure) - Method in class java.util.Timer
  Allows a simple syntax for using timers.

## S

setIndex(int idx) - Method in class java.util.regex.Matcher
  Set the position of the given Matcher to the given index.
setMetaClass(groovy.lang.MetaClass metaClass) - Method in class java.lang.Class
  Sets the metaclass for a given class.
setText(java.lang.String text) - Method in class java.io.File
  Synonym for write(text) allowing file.text = 'foo'.
size() - Method in class java.lang.Object[]
  Provide the standard Groovy `size()` method for an array.
sleep(long milliseconds) - Method in class java.lang.Object
  Sleep for so many milliseconds, even if interrupted.
sleep(long milliseconds, groovy.lang.Closure onInterrupt) - Method in class java.lang.Object
  Sleep for so many milliseconds, using a given closure for interrupt processing.
sort() - Method in class java.util.Collection
  Sorts the given collection into a sorted list.
sort(groovy.lang.Closure closure) - Method in class java.util.Collection
  Sorts this Collection using the closure to determine the correct ordering.
sort(java.util.Comparator comparator) - Method in class java.util.Collection
  Sorts the Collection using the given comparator.
split() - Method in class java.lang.String
  Convenience method to split a string (with whitespace as delimiter) Like tokenize, but returns an Array of Strings instead of a List
split(groovy.lang.Closure closure) - Method in class java.lang.Object
  Splits all items into two lists based on the closure condition.
splitEachLine(java.lang.String regex, groovy.lang.Closure closure) - Method in class java.io.File
  Iterates through this file line by line, splitting each line using the given regex separator.
splitEachLine(java.lang.String sep, groovy.lang.Closure closure) - Method in class java.lang.String
  Iterates through the given String line by line, splitting each line using the given separator.
splitEachLine(java.lang.String sep, java.lang.String charset, groovy.lang.Closure closure) - Method in class java.io.InputStream
  Iterates through the given InputStream line by line using the specified encoding, splitting each line using the given separator.
spread() - Method in class java.util.Map
  Synonym for {@link #toSpreadMap(Map)}.
sprintf(java.lang.String format, java.lang.Object arg) - Method in class java.lang.Object
  Returns a formatted string using the specified format string and arguments.
sprintf(java.lang.String format, java.lang.Object[] values) - Method in class java.lang.Object
  Sprintf to a string (Only works with JDK1.5 or later).
start(groovy.lang.Closure closure) - Method in class java.lang.Thread
  Start a Thread with the given closure as a Runnable instance.
start(java.lang.String name, groovy.lang.Closure closure) - Method in class java.lang.Thread
  Start a Thread with a given name and the given closure as a Runnable instance.
startDaemon(groovy.lang.Closure closure) - Method in class java.lang.Thread
  Start a daemon Thread with the given closure as a Runnable instance.
startDaemon(java.lang.String name, groovy.lang.Closure closure) - Method in class java.lang.Thread
  Start a daemon Thread with a given name and the given closure as a Runnable instance.
step(java.lang.Number to, java.lang.Number stepNumber, groovy.lang.Closure closure) - Method in class java.lang.Number
  Iterates from this number up to the given number using a step increment.
subMap(java.util.Collection keys) - Method in class java.util.Map
  Creates a sub-Map containing the given keys.
subsequences() - Method in class java.util.List
  Finds all non-null subsequences of a list.
sum() - Method in class java.util.Collection
  Sums the items in a collection.
sum(groovy.lang.Closure closure) - Method in class java.util.Collection
  Sums the result of apply a closure to each item of a collection.
sum(java.lang.Object initialValue) - Method in class java.util.Collection
  Sums the items in a collection, adding the result to some initial value.
sum(java.lang.Object initialValue, groovy.lang.Closure closure) - Method in class java.util.Collection
  Sums the result of apply a closure to each item of a collection to sum intial value.

## T

tail() - Method in class java.util.List
  Returns the items from the List excluding the first item.
times(groovy.lang.Closure closure) - Method in class java.lang.Number
  Executes the closure this many times, starting from zero.
toArrayString() - Method in class java.lang.Object[]
  Returns the string representation of the given array.
toBigDecimal() - Method in class java.lang.Number
  Transform a Number into a BigDecimal
toBigInteger() - Method in class java.lang.Number
  Transform this Number into a BigInteger.
toBoolean() - Method in class java.lang.String
  Converts the given string into a Boolean object.
toCharacter() - Method in class java.lang.String
  Converts the given string into a Character object using the first character in the string.
toDouble() - Method in class java.lang.Number
  Transform a Number into a Double
toFloat() - Method in class java.lang.Number
  Transform a Number into a Float
toInteger() - Method in class java.lang.Number
  Transform a Number into an Integer
toList() - Method in class java.lang.String
  Converts the given String into a List of strings of one character.
toListString() - Method in class java.util.Collection
  Returns the string representation of the given list.
toLong() - Method in class java.lang.Number
  Transform a Number into a Long
toLowerCase() - Method in class java.lang.Character
  Converts the character to lowercase.
toMapString() - Method in class java.util.Map
  Returns the string representation of this map.
toRowResult() - Method in class java.sql.ResultSet
  Returns a GroovyRowResult given a ResultSet.
toShort() - Method in class java.lang.String
  Parse a String into a Short
toSpreadMap() - Method in class java.lang.Object[]
  Creates a spreadable map from this array.
toString() - Method in class java.lang.Object
  Create a String representation of this object.
toURI() - Method in class java.lang.String
  Transforms a String representing a URI into a URI object.
toURL() - Method in class java.lang.String
  Transforms a String representing a URL into a URL object.
toUpperCase() - Method in class java.lang.Character
  Converts the character to uppercase.
tokenize() - Method in class java.lang.String
  Tokenize a String (with a whitespace as the delimiter).
tokenize(java.lang.String token) - Method in class java.lang.String
  Tokenize a String based on the given string delimiter.
transformChar(java.io.Writer writer, groovy.lang.Closure closure) - Method in class java.io.Reader
  Transforms each character from this reader by passing it to the given closure.
transformLine(java.io.Writer writer, groovy.lang.Closure closure) - Method in class java.io.Reader
  Transforms the lines from a reader with a Closure and write them to a writer.
transpose() - Method in class java.util.List
  Adds GroovyCollections#transpose(List) as a method on lists.
trunc() - Method in class java.lang.Double
  Truncate the value
trunc(int precision) - Method in class java.lang.Double
  Truncate the value

## U

unaryMinus() - Method in class java.lang.Number
  Negates the number.
unique() - Method in class java.util.Collection
  Modifies this collection to remove all duplicated items, using the default comparator.
unique(groovy.lang.Closure closure) - Method in class java.util.Collection
  A convenience method for making a collection unique using a Closure to determine duplicate (equal) items.
unique(java.util.Comparator comparator) - Method in class java.util.Collection
  Remove all duplicates from a given Collection.
upto(java.lang.Number to, groovy.lang.Closure closure) - Method in class java.lang.Double
  Iterates from this number up to the given number, inclusive, incrementing by one each time.
use(java.lang.Class categoryClass, groovy.lang.Closure closure) - Method in class java.lang.Object
  Scoped use method
use(java.lang.Object[] array) - Method in class java.lang.Object
  Allows you to use a list of categories, specifying the list as varargs.
use(java.util.List categoryClassList, groovy.lang.Closure closure) - Method in class java.lang.Object
  Scoped use method with list of categories.

## W

waitForOrKill(long numberOfMillis) - Method in class java.lang.Process
  Wait for the process to finish during a certain amount of time, otherwise stops the process.
waitForProcessOutput() - Method in class java.lang.Process
  Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
waitForProcessOutput(java.io.OutputStream output, java.io.OutputStream error) - Method in class java.lang.Process
  Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
waitForProcessOutput(java.lang.StringBuffer output, java.lang.StringBuffer error) - Method in class java.lang.Process
  Gets the output and error streams from a process and reads them to keep the process from blocking due to a full output buffer.
with(groovy.lang.Closure closure) - Method in class java.lang.Object
  Allows the closure to be called for the object reference self
withDataInputStream(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new DataInputStream for this file and passes it into the closure.
withDataOutputStream(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new DataOutputStream for this file and passes it into the closure.
withInputStream(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new InputStream for this file and passes it into the closure.
withObjectInputStream(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new ObjectInputStream for this file and pass it to the closure.
withObjectInputStream(java.lang.ClassLoader classLoader, groovy.lang.Closure closure) - Method in class java.io.File
  Create a new ObjectInputStream for this file associated with the given class loader and pass it to the closure.
withObjectOutputStream(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new ObjectOutputStream for this file and then pass it to the closure.
withObjectStreams(groovy.lang.Closure closure) - Method in class java.net.Socket
  Creates an InputObjectStream and an OutputObjectStream from a Socket, and passes them to the closure.
withOutputStream(groovy.lang.Closure closure) - Method in class java.lang.Process
  Creates a new buffered OutputStream as stdin for this process, passes it to the closure, and ensures the stream is flushed and closed after the closure returns.
withPrintWriter(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new PrintWriter for this file which is then passed it into the given closure.
withPrintWriter(java.lang.String charset, groovy.lang.Closure closure) - Method in class java.io.File
  Create a new PrintWriter with a specified charset for this file.
withReader(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new BufferedReader for this file and then passes it into the closure, ensuring the reader is closed after the closure returns.
withReader(java.lang.String charset, groovy.lang.Closure closure) - Method in class java.io.File
  Create a new BufferedReader for this file using the specified charset and then passes it into the closure, ensuring the reader is closed after the closure returns.
withStream(groovy.lang.Closure closure) - Method in class java.io.InputStream
  Allows this input stream to be used within the closure, ensuring that it is flushed and closed before this method returns.
withStreams(groovy.lang.Closure closure) - Method in class java.net.Socket
  Passes the Socket's InputStream and OutputStream to the closure.
withWriter(groovy.lang.Closure closure) - Method in class java.lang.Process
  Creates a new BufferedWriter as stdin for this process, passes it to the closure, and ensures the stream is flushed and closed after the closure returns.
withWriter(java.lang.String charset, groovy.lang.Closure closure) - Method in class java.io.File
  Creates a new BufferedWriter for this file, passes it to the closure, and ensures the stream is flushed and closed after the closure returns.
withWriterAppend(groovy.lang.Closure closure) - Method in class java.io.File
  Create a new BufferedWriter for this file in append mode.
withWriterAppend(java.lang.String charset, groovy.lang.Closure closure) - Method in class java.io.File
  Create a new BufferedWriter which will append to this file.
write(groovy.lang.Writable writable) - Method in class java.io.Writer
  A helper method so that dynamic dispatch of the writer.write(object) method will always use the more efficient Writable.writeTo(writer) mechanism if the object implements the Writable interface.
write(java.lang.String text) - Method in class java.io.File
  Write the text to the File.
write(java.lang.String text, java.lang.String charset) - Method in class java.io.File
  Write the text to the File, using the specified encoding.
writeLine(java.lang.String line) - Method in class java.io.BufferedWriter
  Write the text and append a newline (using the platform's line-ending).

## X

xor(java.lang.Boolean right) - Method in class java.lang.Boolean
  Exclusive disjunction of two boolean operators
xor(java.lang.Number right) - Method in class java.lang.Number
  Bitwise XOR together two Numbers.
xor(java.util.BitSet right) - Method in class java.util.BitSet
  Bitwise XOR together two BitSets.

A B C D E F G H I J L M N O P R S T U W X

Overview | Package | Class | Tree | Deprecated | Index | Help
| Groovy JDK