gzz.media.impl
Class SimpleSpanSet

java.lang.Object
  |
  +--gzz.media.impl.SimpleSpanSet
All Implemented Interfaces:
SpanSet

public class SimpleSpanSet
extends java.lang.Object
implements SpanSet

A simple, very slow span set. XXX Rename to Trivial


Field Summary
 
Fields inherited from interface gzz.media.SpanSet
rcsid
 
Constructor Summary
SimpleSpanSet()
           
 
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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleSpanSet

public SimpleSpanSet()
Method Detail

addSpan

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

Specified by:
addSpan in interface SpanSet

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?

Specified by:
overlaps in interface SpanSet

spans

public java.util.Collection spans()
Description copied from interface: SpanSet
Get an unmodifiable collection containing all the key spans of this set.

Specified by:
spans in interface SpanSet

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object