Last active
March 1, 2016 10:49
-
-
Save kdabir/3a3e128533a8fb662771 to your computer and use it in GitHub Desktop.
Wroking with NavigableMap in groovy
This file contains hidden or 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
class X { int a} | |
def m2 = new TreeMap( [(new X(a:1)): 2, (new X(a:2)): 4] ) | |
// this should throw execetion as Key (X) is not comparable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment