code: public boolean intersects(final Span s) {
      final int sstart = s.getStart();
      // either s's start is in this or this' start is in s
      return this.contains(s) || s.contains(this)
          || getStart() <= sstart && sstart < getEnd()
          || sstart <= getStart() && getStart() < s.getEnd();
    }
docs: Returns true if the specified span intersects with this span.
  
  @param s
  The span to compare with this span.
  
  @return true is the spans overlap; false otherwise.