Skip to content

Instantly share code, notes, and snippets.

@Joxebus
Created August 12, 2020 06:54
Show Gist options
  • Save Joxebus/6f4d65cb201913ce3f1b0067bbeebf69 to your computer and use it in GitHub Desktop.
Save Joxebus/6f4d65cb201913ce3f1b0067bbeebf69 to your computer and use it in GitHub Desktop.
Samples for Desveloper Channel
def name = '"Desveloper"'
def map = [:] // java.util.LinkedHashMap
def elements = [1, // java.lang.Integer
11111111111, // java.lang.Long
11111111111111111111, // java.math.BigInteger
0.1, // java.math.BigDecimal
0..5, // groovy.lang.IntRange
'x'..'p', // groovy.lang.ObjectRange
"Normal String", // java.lang.String
'Another normal String', // java.lang.String
"GString with value $name", // groovy.lang.GString
[], // java.util.ArrayList
]
elements.each{ println it.class.name }
println map.getClass().name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment