@Test public void testCompareToWithLowerIntersectSpan() { Span a = new Span(5000, 900); Span b = new Span(4900, 1000); assertTrue(a.compareTo(b) < 0); }
@Override public int compareTo(Span span) { return span.getStart() - getStart(); }
Span implements Comparable<Span> { @Override public int compareTo(Span span) { return span.getStart() - getStart(); } }
Span implements Comparable<Span> { @Override public int compareTo(Span span) { return span.getStart() - getStart(); } Span(int start, int length); }
Span implements Comparable<Span> { @Override public int compareTo(Span span) { return span.getStart() - getStart(); } Span(int start, int length); int getStart(); int getLength(); int getEnd(); boolean isContaining(Span containingSpan); boolean isIntersecting(Span s); @Override int compareTo(Span span); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); }
Span implements Comparable<Span> { @Override public int compareTo(Span span) { return span.getStart() - getStart(); } Span(int start, int length); int getStart(); int getLength(); int getEnd(); boolean isContaining(Span containingSpan); boolean isIntersecting(Span s); @Override int compareTo(Span span); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode();  }