Skip to content

Instantly share code, notes, and snippets.

@marco-brandizi
Last active October 7, 2020 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marco-brandizi/4cbbb54746e5200763886cdbfa4a1466 to your computer and use it in GitHub Desktop.
Save marco-brandizi/4cbbb54746e5200763886cdbfa4a1466 to your computer and use it in GitHub Desktop.
var o = new Foo ("one");
map.put ( o, o )
...
var o1 = new Foo ( "one" )
...
var o2 = map.get ( o1 ) // fetches o if .equals()/.hashCode() tells that they're equal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment