public boolean merge(Row other) throws IllegalArgumentException
  {
    if(canMerge(other))
    {
      occupancySet.or(other.occupancySet);
      for(GridEvent e : other.events)
      {
        events.add(e);
      }
      return true;
    }
    else
    {
      return false;
    }
  }
public boolean merge ( Row other ) throws IllegalArgumentException { if ( canMerge ( other ) ) { occupancySet . or ( other . occupancySet ) ; for ( GridEvent e : other . events ) { events . add ( e ) ; } return true ; } else { return false ; } }
Merges the other row into this row.
This means all events from the other {@link Row} are added to this row. The other
{@link Row} will not be changed.
Only rows which have no overlapping events can be merged.

@param other The other {@link Row} which will be merged into this one.
@return Returns true if merge was successfull, false if no merge was done.

@see #canMerge(annis.gui.visualizers.component.grid.Row)