java.lang.Object
generic.RangeMapSetter<E,N,S,V>
generic.Span.SpanMapSetter<E,N,S,V>
- Type Parameters:
E
- the type of entries in theSpan.SpanMap
implementationN
- the type of endpointsS
- the type of spansV
- the type of values
public abstract static class Span.SpanMapSetter<E,N,S extends Span<N,S>,V>
extends RangeMapSetter<E,N,S,V>
A partial implementation of
RangeMapSetter
for Span
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
Compare two values as inComparator.compare(Object, Object)
protected abstract Span.Domain
<N, S> domain()
Get the domain of the spansprotected N
Get the lower bound of the rangeprotected N
Get the number immediately following the given boundprotected N
getPrevious
(N d) Get the number immediately preceding the given boundprotected N
Get the upper bound of the rangeprotected S
Create a closed range with the given boundsMethods inherited from class generic.RangeMapSetter
connects, getIntersecting, getNextOrSame, getPreviousOrSame, getRange, getValue, put, remove, set, set, valuesEqual
-
Constructor Details
-
SpanMapSetter
public SpanMapSetter()
-
-
Method Details
-
domain
Get the domain of the spans- Returns:
- the domain
-
compare
Description copied from class:RangeMapSetter
Compare two values as inComparator.compare(Object, Object)
-
getLower
Description copied from class:RangeMapSetter
Get the lower bound of the range -
getUpper
Description copied from class:RangeMapSetter
Get the upper bound of the range -
toSpan
Description copied from class:RangeMapSetter
Create a closed range with the given bounds -
getPrevious
Description copied from class:RangeMapSetter
Get the number immediately preceding the given bound- Specified by:
getPrevious
in classRangeMapSetter<E,
N, S extends Span<N, S>, V> - Parameters:
d
- the bound- Returns:
- the previous bound, or null if it doesn't exist
-
getNext
Description copied from class:RangeMapSetter
Get the number immediately following the given bound
-