Skip to content

Instantly share code, notes, and snippets.

@motlin
Created May 15, 2018 22:00
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 motlin/5715b579e4415fd09de0f8317ee90871 to your computer and use it in GitHub Desktop.
Save motlin/5715b579e4415fd09de0f8317ee90871 to your computer and use it in GitHub Desktop.
HashingStrategy<Person> strategy =
HashingStrategies.fromFunction(Person::getSystemId);
MutableSet<Person> people =
new UnifiedSetWithHashingStrategy<>(strategy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment