• Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicates handling by Set Collection  RSS feed

 
vijay kumarg
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
 
Joanne Neal
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
 
Paul Codillo
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!