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 package ...
Get Groovy in Action, Second Edition 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.