Appendix C. GDK API quick reference

Arrays and primitives

Method name

Parameter types

Return type

Array of byte or Byte

   
 

encodeBase64

 

Writable

Array of primitives

   
 

getAt

int

Object

 

getAt

Range

Object

    

Returned object is a list of autoboxed items

 

getAt

Collection

Object

    

Returned object is a list of autoboxed items

 

putAt

int, Object

void

 

size

 

int

 

toList

 

List

Array of Object

   
 

getAt

int

Object

 

getAt

Range

List

 

getAt

Collection

List

 

inject

Object, Closure

Object

 

join

String

String

 

putAt

int, Object

void

 

size

 

int

 

spread

 

SpreadList

 

toArrayString

 

String

 

toList

 

List

 

toSpreadList

 

SpreadList

 

toSpreadMap

 

SpreadMap

 

toString

 

String

Array of String

   
 

execute

 

Process

double, float, long

   
 

downto

Number, Closure

void

 

upto

Number, Closure

void

The java.lang package

Method name

Parameter ...

Get Groovy in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.