|
Groovy JDK |
Provides a method to perform custom 'dynamic' type conversion
to the given class using the as
operator.
size
.
size
.
size
stepping through the code step
elements for each subList.
size
stepping through the code step
elements for each sub-list.
transform
closure, returning a list of transformed values.
transform
closure
and adding it to the supplied collector
.
collector
.
transform
closure.
true
if the intersection of two collections is empty.
true
according to the Groovy Truth.
self
as a command-line process.
self
with environment defined by envp
and under the working directory dir
.
self
with environment defined
by envp
and under the working directory dir
.
Shortcut for SimpleDateFormat to output a String representation of this calendar instance.
Create a String representation of this date according to the given format pattern and timezone.
Return a string representation of the 'day' portion of this date according to the locale-specific DateFormat#SHORT default format.
Return a string representation of the date and time time portion of this Date instance, according to the locale-specific format used by DateFormat.
String.metaClass.myMethod = { println "foo" }
Return a string representation of the time portion of this date according to the locale-specific DateFormat#MEDIUM default format.
Object#isCase
method used by switch statements.
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
compareTo()
method for comparing numbers of different
types.
toString()
representation of each
items in this array, with the given String as a separator between each
item.
Map
containing all entries from left
and right
,
giving precedence to right
.
Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of the arguments.
Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types.
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 for CharSequence
.
num
elements from this CharSequence.
closure
for each descendant file in this directory tree.
withLazyDefault
which decorates a list allowing
it to grow when called with index values outside the normal list bounds.
|
Groovy JDK |