|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
edu.upenn.cis.pdtb.util.ArraySet
edu.upenn.cis.pdtb.SpanList
Spans ordered by getStart() and getEnd(). This has been changed to derive from ArraySet rather than TreeSet for performance reasons. Since the SortedSet interface is still respected, hopefully this won't cause any problems.
| Field Summary |
| Fields inherited from class edu.upenn.cis.pdtb.util.ArraySet |
fCheckLowerBound, fCheckUpperBound, fComparator, fLowerBound, fStore, fUpperBound |
| Constructor Summary | |
SpanList()
|
|
SpanList(java.lang.String spans)
Creates a new instance of SpanList |
|
| Method Summary | |
int |
getRangeEnd()
|
int |
getRangeStart()
|
boolean |
isContainedBy(Span s2)
Checks if every span in this set is contained by s2. |
boolean |
isContainedBy(SpanList l)
Checks if every span in this set is contained by some span in l. |
boolean |
isIdentical(Span s2)
Checks if every span in this set is identical to s2. |
boolean |
isIdentical(SpanList l)
Checks if every span in this set is identical to some span in l and conversely. |
boolean |
isOverlapping(Span s2)
Checks if some span in this set overlaps with s2. |
boolean |
isOverlapping(SpanList l)
Checks if some span in this set overlaps with some span in l. |
boolean |
isRangedOverBy(Span s)
Checks if the range of this set is contained by s. |
boolean |
isRangedOverBy(SpanList l)
Checks if the range of this set is contained by the range of l. |
Span |
range()
The range of this set. |
boolean |
rangeCrosses(Span s)
Checks if the range of this set crosses s. |
boolean |
rangeCrosses(SpanList l)
Checks if the range of this set crosses the range of l. |
boolean |
rangeOverlaps(Span s)
|
boolean |
rangeOverlaps(SpanList l)
|
boolean |
rangesOver(Span s)
Checks if the range of this set is contains s. |
boolean |
rangesOver(SpanList l)
Checks if the range of this set is contains the range of l. |
java.lang.String |
toString()
|
| Methods inherited from class edu.upenn.cis.pdtb.util.ArraySet |
add, clear, comparator, contains, findLeastUpperBound, first, get, headSet, iterator, last, main, remove, search, size, subSet, tailSet |
| Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, isEmpty, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
public SpanList(java.lang.String spans)
public SpanList()
| Method Detail |
public java.lang.String toString()
toString in class ArraySetpublic boolean isOverlapping(SpanList l)
public boolean isOverlapping(Span s2)
public boolean isContainedBy(SpanList l)
public boolean isContainedBy(Span s2)
public boolean isIdentical(SpanList l)
public boolean isIdentical(Span s2)
public boolean rangesOver(SpanList l)
public boolean rangesOver(Span s)
public boolean isRangedOverBy(SpanList l)
public boolean isRangedOverBy(Span s)
public boolean rangeCrosses(SpanList l)
public boolean rangeCrosses(Span s)
public boolean rangeOverlaps(SpanList l)
public boolean rangeOverlaps(Span s)
public Span range()
public int getRangeStart()
public int getRangeEnd()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||