- Type Parameters:
N- the type of endpointsS- the type of spans
- All Superinterfaces:
Span.SpanSet<N,S>
- All Known Subinterfaces:
ULongSpan.MutableULongSpanSet
- All Known Implementing Classes:
Span.DefaultSpanSet,ULongSpan.DefaultULongSpanSet
An abstract interface for a mutable
Span.SpanSet-
Method Summary
Methods inherited from interface generic.Span.SpanSet
bound, complement, contains, encloses, intersecting, intersects, isEmpty, spanContaining, spans, toString
-
Method Details
-
add
Add a span to the setAny connected spans will be coalesced.
- Parameters:
s- the span
-
addAll
Add all spans from the given set into this oneThe spans from both maps amy be coalesced when entered into this one. (The given map remains unmodified.)
- Parameters:
set- the other set
-
remove
Remove a span from the setSpans which intersect the given span are truncated. Spans which are enclosed are deleted, such that no value in the given span remains in the set.
- Parameters:
s- the span
-
clear
void clear()Remove all spans from the set
-