O'Reilly logo

Groovy in Action by Jon Skeet, Guillaume Laforge, Paul King, Andrew Glover, Dierk Koenig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required