Created
August 12, 2020 06:54
-
-
Save Joxebus/6f4d65cb201913ce3f1b0067bbeebf69 to your computer and use it in GitHub Desktop.
Samples for Desveloper Channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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