• Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicates handling by Set Collection  RSS feed

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does the Set Collection handles when the duplicates trying to added
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the description of the add() method in the Set Javadoc
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by vijayk gopu:
How does the Set Collection handles when the duplicates trying to added


The add method simply returns false and doesn't give you any errors.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!