- Type Parameters:
N
- the type of endpointsS
- the type of spansV
- the type of values
- All Superinterfaces:
Span.SpanMap<N,
S, V>
- All Known Subinterfaces:
ULongSpan.MutableULongSpanMap<V>
- All Known Implementing Classes:
Span.DefaultSpanMap
,ULongSpan.DefaultULongSpanMap
An abstract interface for a mutable
Span.SpanMap
-
Method Summary
Methods inherited from interface generic.Span.SpanMap
bound, entries, get, getEntry, intersectingEntries, intersectingSpans, intersects, isEmpty, spans, values
-
Method Details
-
put
Put an entry, mapping all keys contains in the span to the given valueEach key can only be mapped to a single value. Thus existing entries having the same value may be coalesced to this new entry. Existing entries having a different value will be truncated or deleted to make room for this entry.
- Parameters:
s
- the spanv
- the value
-
putAll
Copy all entries from the given map into this oneThe entries from both maps may be coalesced when entered into this one. (The given map remains unmodified.) The entries in this map may be truncated or deleted to make room for those in the given map.
- Parameters:
map
- the other map
-
remove
Delete all keys in the given spanEntries which intersect the given span are truncated. Entries which are enclosed are deleted, such that every key in the given span is no longer mapped to a value.
- Parameters:
s
- the span
-
clear
void clear()Remove all entries from the map
-