O'Reilly logo

Groovy in Action, Second Edition by Dierk König and Paul King with Guillaume Laforge, Hamlet D'Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet

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

Primitive type

Method name

Parameter types

Return type

  swap int, int short[]
  toList _ List
  toSet _ Set
  toString _ String
boolean[]      
  asBoolean _ Boolean
  contains Object Boolean
  count Object Number
  flatten _ Collection
  getAt Collection List
  getAt IntRange List
  getAt ObjectRange List
  getAt Range List
  size _ int
  swap int, int Boolean[]
  toList _ List
  toSet _ Set
  toString _ String
  double    
  downto Number, Closure void
  upto Number, Closure void
  float    
  downto Number, Closure void
  upto Number, Closure void
  long    
  downto Number, Closure void
  upto Number, Closure void

The groovy.lang package

Table C.2. groovy.lang ...

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