-
set(java.util.Map) -
Method in class java.util.Calendar
-
Support mutating a Calendar with a Map.
-
setBytes(byte[]) -
Method in class java.io.File
-
Write the bytes from the byte array to the File.
-
setIndex(int) -
Method in class java.util.regex.Matcher
-
Set the position of the given Matcher to the given index.
-
setMetaClass(groovy.lang.MetaClass) -
Method in class java.lang.Class
-
Sets the metaclass for a given class.
-
setText(java.lang.String) -
Method in class java.io.File
-
Synonym for write(text) allowing file.text = 'foo'.
-
setText(java.lang.String, java.lang.String) -
Method in class java.io.File
-
Synonym for write(text, charset) allowing:
myFile.setText('some text', charset)
or with some help from ExpandoMetaClass
, you could do something like:
myFile.metaClass.setText = { String s -> delegate.setText(s, 'UTF-8') }
myfile.text = 'some text'
-
size() -
Method in class java.lang.Object[]
-
Provide the standard Groovy
size()
method for an array.
-
sleep(long) -
Method in class java.lang.Object
-
Sleep for so many milliseconds, even if interrupted.
-
sleep(long, groovy.lang.Closure) -
Method in class java.lang.Object
-
Sleep for so many milliseconds, using a given closure for interrupt processing.
-
sort() -
Method in class java.lang.Object[]
-
Sorts the given Object array into sorted order.
-
sort(groovy.lang.Closure) -
Method in class java.lang.Object[]
-
Sorts the given Object array into a newly created array using
the Closure to determine the correct ordering.
-
sort(java.util.Comparator) -
Method in class java.lang.Object[]
-
Sorts the given Object array into sorted order 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) -
Method in class java.lang.Object
-
Splits all items into two lists based on the closure condition.
-
splitEachLine(java.lang.String, groovy.lang.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, java.lang.String, groovy.lang.Closure) -
Method in class java.io.File
-
Iterates through this file line by line, splitting each line using
the given regex separator.
-
splitEachLine(java.util.regex.Pattern, groovy.lang.Closure) -
Method in class java.lang.String
-
Iterates through the given String line by line, splitting each line using
the given separator Pattern.
-
splitEachLine(java.util.regex.Pattern, java.lang.String, groovy.lang.Closure) -
Method in class java.io.File
-
Iterates through this file line by line, splitting each line using
the given regex separator Pattern.
-
spread() -
Method in class java.util.Map
-
Synonym for Map#toSpreadMap.
-
sprintf(java.lang.String, java.lang.Object) -
Method in class java.lang.Object
-
Returns a formatted string using the specified format string and
arguments.
-
sprintf(java.lang.String, java.lang.Object[]) -
Method in class java.lang.Object
-
Sprintf to a string (Only works with JDK1.5 or later).
-
start(groovy.lang.Closure) -
Method in class java.lang.Thread
-
Start a Thread with the given closure as a Runnable instance.
-
start(java.lang.String, groovy.lang.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) -
Method in class java.lang.Thread
-
Start a daemon Thread with the given closure as a Runnable instance.
-
startDaemon(java.lang.String, groovy.lang.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, java.lang.Number, groovy.lang.Closure) -
Method in class java.lang.Number
-
Iterates from this number up to the given number using a step increment.
-
stripIndent() -
Method in class java.lang.String
-
Strip leading spaces from every line in a String.
-
stripIndent(int) -
Method in class java.lang.String
-
Strip numChar leading characters from
every line in a String.
-
stripMargin() -
Method in class java.lang.String
-
Strip leading whitespace/control characters followed by '|' from
every line in a String.
-
stripMargin(char) -
Method in class java.lang.String
-
Strip leading whitespace/control characters followed by marginChar from
every line in a String.
-
stripMargin(java.lang.String) -
Method in class java.lang.String
-
Strip leading whitespace/control characters followed by marginChar from
every line in a String.
-
subMap(java.util.Collection) -
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.lang.Object[]
-
Sums the items in an array.
-
sum(groovy.lang.Closure) -
Method in class java.lang.Object[]
-
Sums the result of apply a closure to each item of an array.
-
sum(java.lang.Object) -
Method in class java.lang.Object[]
-
Sums the items in an array, adding the result to some initial value.
-
sum(java.lang.Object, groovy.lang.Closure) -
Method in class java.lang.Object[]
-
Sums the result of applying a closure to each item of an array to some initial value.