title: Replace the value of an item on LinkedHashSet
body: <p>I have a <code>LinkedHashSet</code> that stores <code>Json</code> Objects, I'm using it to keep the order of the insertion of the items. However now, I would like depending on a condition to update the value of a specific item. </p>
  
  <p>To remove a specific item is quite easy, but I didn't figure out how to do the update.</p>
  
  <pre><code>LinkedHashSet&lt;JsonObject&gt; mediaList = new LinkedHashSet&lt;JsonObject&gt;;
  
  ......
  
  int i = 0;
  int tagPosition = 5;
  JsonObject mediaItem = null;
  final Iterator&lt;JsonObject&gt; iterator = mediaList.iterator ();
  
  while (iterator.hasNext ()) {
      if (i == tagPosition) {
          mediaItem = iterator.next ();
          mediaItem.set ("type", "New Value"); //the new value putted on the JsonObject of the specif location
  
          // Here, how to update the Set ??
  
          break;
      }
      iterator.next ();
      i++;
  }
  </code></pre>