gzz.media
Interface SpanSet

All Known Implementing Classes:
SimpleSpanSet

public interface SpanSet

An interface to Flobs that contain spans. This is more a Map than a Set... XXX Extend with links, i.e. one-level indirection between overlaps. XXX Rename to SpanMap!!!


Field Summary
static java.lang.String rcsid
           
 
Method Summary
 void addSpan(Span s, java.lang.Object obj)
          Add a span.
 java.util.Collection overlaps(Span s)
          Get the objects corresponding to the spans entered that overlap the given span.
 java.util.Collection spans()
          Get an unmodifiable collection containing all the key spans of this set.
 

Field Detail

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values
Method Detail

addSpan

public void addSpan(Span s,
                    java.lang.Object obj)
Add a span.


overlaps

public java.util.Collection overlaps(Span s)
Get the objects corresponding to the spans entered that overlap the given span. XXX Should be enumeration?


spans

public java.util.Collection spans()
Get an unmodifiable collection containing all the key spans of this set.