Modern Digital Website Security: Prepare to face any form of malicious web activity and enable your sites to optimally serve your customers.
Low-Code Development: Learn the concepts of low code, features + use cases for professional devs, and the low-code implementation process.
Architect / Consultanat at Chariot Solutions
Ft. Washington, US
Joined Dec 2010
About
Mr. Freedman is a seasoned architect and developer with over twenty years experience in the software industry. In the last ten years, he has focused on Java technologies and has led many successful projects, from web applications to Swing-based rich clients, back-end systems and large integration efforts. !
Stats
Reputation: | 48 |
Pageviews: | 73.4K |
Articles: | 0 |
Comments: | 3 |
Comments
Dec 26, 2020 · Mahmoud Anouti
Yes, there is nothing about this that is thread safe - that's your responsibility, and has nothing specifically to do with streams.
Also, an arguably better solution would be to generate UUIDs, which would be unique, and you wouldn't have to de-dupe them. You can also turn them into longs if you really need to.
Dec 21, 2018 · vikas kasegaonkar
Folks who are bashing lombok are partially correct. I wouldn't use it everywhere. However, it's very useful for JPA entity classes and DTOs - cases where for better or for worse, the class is just a "bag of properties" that has little to no other code in it, and for which you need the "java beans" pattern (getters/setters) because you're working with a framework that expects it.
One of the biggest advantages over, hand-written or IDE-generated getters/setters/hashcode/equals is that you can't forget to update hashcode and equals when you add a property to the class.
Jan 31, 2011 · Joseph Randolph