Created
January 24, 2018 12:12
-
-
Save gaboratorium/9f123856b595284d1f976d7046a69763 to your computer and use it in GitHub Desktop.
Duplicate removal #java #stream
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
myCollection | |
.collect(Collectors.toMap(MyClass::getProperty, b -> b, (duplicate1, duplicate2) -> duplicate1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment