Interface Span.MutableSpanSet<N, S extends Span<N,S>>
- Type Parameters:
N- the type of endpointsS- the type of spans
- All Superinterfaces:
Span.SpanSet<N,S>
- All Known Subinterfaces:
Lifespan.MutableLifeSet, ULongSpan.MutableULongSpanSet
- All Known Implementing Classes:
Lifespan.DefaultLifeSet, Span.DefaultSpanSet, ULongSpan.DefaultULongSpanSet
An abstract interface for a mutable
Span.SpanSet-
Method Summary
Methods inherited from interface Span.SpanSet
bound, complement, contains, encloses, intersecting, intersects, isEmpty, spanContaining, spans, toString
-
Method Details
-
add
-
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
-