Class RangeMapSetter<E,D,R,V>
java.lang.Object
generic.RangeMapSetter<E,D,R,V>
- Type Parameters:
E- the type of entriesD- the type of range boundsR- the type of rangesV- the type of values
- Direct Known Subclasses:
DBTraceUtils.AddressRangeMapSetter, DBTraceUtils.LifespanMapSetter, Span.SpanMapSetter
A method outline for setting an entry in a range map where coalescing is desired
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intCompare two values as inComparator.compare(Object, Object)protected booleanCheck if the two ranges are connectedgetIntersecting(D lower, D upper) Get all entries intersecting the closed range formed by the given boundsprotected abstract DGet the lower bound of the rangeprotected abstract DGet the number immediately following the given boundprotected DgetNextOrSame(D d) Get the next bound or this same bound, if the next doesn't existprotected abstract DgetPrevious(D d) Get the number immediately preceding the given boundprotected DGet the previous bound or this same bound, if the previous doesn't existprotected abstract RGet the range of the given entryprotected abstract DGet the upper bound of the rangeprotected abstract VGet the value of the given entryprotected abstract EPlace an entry into the mapprotected abstract voidRemove an entry from the mapEntry point: Set the given range to the given value, coalescing where possibleEntry point: Set the given range to the given value, coalescing where possibleprotected abstract RCreate a closed range with the given boundsprotected booleanvaluesEqual(V v1, V v2) Check if two values are equal
-
Constructor Details
-
RangeMapSetter
public RangeMapSetter()
-
-
Method Details
-
compare
Compare two values as inComparator.compare(Object, Object)- Parameters:
d1- the first valued2- the second value- Returns:
- the result
-
getRange
-
getValue
-
valuesEqual
-
remove
-
getLower
-
getUpper
-
toSpan
-
getPrevious
-
getNext
-
getIntersecting
-
put
-
getPreviousOrSame
-
getNextOrSame
-
connects
-
set
-
set
-