Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HashSet

 
Seth Anshul
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way for a HashSet to have duplicate values?
 
Amit Y Desai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hash set is meant for having non-duplicate values.
If you want duplicate values then go for other collection interfaces.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic