Interface TracePropertyMapOperations<T>
- Type Parameters:
T- the type of values
- All Known Subinterfaces:
TracePropertyMap<T>,TracePropertyMapSpace<T>
- All Known Implementing Classes:
AbstractDBTracePropertyMap,AbstractDBTracePropertyMap.DBTraceIntPropertyMap,AbstractDBTracePropertyMap.DBTraceLongPropertyMap,AbstractDBTracePropertyMap.DBTracePropertyMapSpace,AbstractDBTracePropertyMap.DBTraceSaveablePropertyMap,AbstractDBTracePropertyMap.DBTraceStringPropertyMap,AbstractDBTracePropertyMap.DBTraceVoidPropertyMap
Trace-
Method Summary
Modifier and TypeMethodDescriptionbooleanclear(Lifespan span, AddressRange range) Remove or truncate entries so that the given box contains no entriesGet the value at the given address-snap pairgetAddressSetView(Lifespan span) Get the union of address ranges for entries which intersect the given spangetEntries(Lifespan lifespan, AddressRange range) Get the entries intersecting the given boundsGet the entry at the given address-snap pairGet the class for values of the mapvoidset(Lifespan lifespan, AddressRange range, T value) Set a value over the given rangesvoidSet a value at the given address over the given lifespan
-
Method Details
-
getValueClass
Get the class for values of the map- Returns:
- the value class
-
set
Set a value at the given address over the given lifespan- Parameters:
lifespan- the lifespanaddress- the addressvalue- the value- See Also:
-
set
Set a value over the given rangesSetting a value of null still creates an entry, so that Void-typed maps function.
When setting an overlapping value, existing entries are deleted or truncated to make space for the new entry. If an existing entry overlaps and its starting snap is contained in the new entry's span, the existing entry is deleted, regardless of whether or not its ending snap is also contained in the new entry's span. If the starting snap of the existing entry precedes the span of the new entry, the existing entry is truncated -- its ending snap is set to one less than the new entry's starting snap. Address ranges are never truncated.
- Parameters:
lifespan- the lifespanrange- the address rangevalue- the value
-
get
Get the value at the given address-snap pair- Parameters:
snap- the snapaddress- the address- Returns:
- the value
-
getEntry
Get the entry at the given address-snap pair- Parameters:
snap- the snapaddress- the address- Returns:
- the entry, which includes the ranges and the value
-
getEntries
Get the entries intersecting the given bounds- Parameters:
lifespan- the range of snapsrange- the range of addresses- Returns:
- the entries
-
getAddressSetView
Get the union of address ranges for entries which intersect the given span- Parameters:
span- the range of snaps- Returns:
- the address set
-
clear
Remove or truncate entries so that the given box contains no entriesThis applies the same truncation rule as in
set(Lifespan, AddressRange, Object), except that no replacement entry is created.- Parameters:
span- the range of snapsrange- the address range- Returns:
- true if any entry was affected
-