title: Selenide combines 2 ElementsCollections
body: <p>I have 2 <code>ElementsCollections</code> namely <code>oddTableRowItems</code> and <code>evenTableRowItems</code>:</p>
  
  <pre><code>private static ElementsCollection oddTableRowItems() {
      return $$(By.className("odd"));
  }
  
  private static ElementsCollection evenTableRowItems() {
      return $$(By.className("even"));
  }
  </code></pre>
  
  <p>I want to combine the 2 in order to only do a for loop once. It is row items, and only there classnames differ for styling purposes and I can only identify them through classnames.</p>
  
  <p>This is how I tried to combine it - but it does not work:</p>
  
  <pre><code>ElementsCollection rowElements = evenTableRowItems();
  rowElements.addAll(oddTableRowItems());
  </code></pre>
  
  <p>I get an:</p>
  
  <blockquote>
    <p>java.lang.UnsupportedOperationException</p>
  </blockquote>
  
  <p>does anybody how can I combine the 2 <code>ElementsCollections</code>?</p>