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.SpanMapimplementationN- 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 Spans.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intCompare two values as inComparator.compare(Object, Object)protected abstract Span.Domain<N, S> domain()Get the domain of the spansprotected NGet the lower bound of the rangeprotected NGet the number immediately following the given boundprotected NgetPrevious(N d) Get the number immediately preceding the given boundprotected NGet the upper bound of the rangeprotected SCreate 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:RangeMapSetterCompare two values as inComparator.compare(Object, Object) -
getLower
Description copied from class:RangeMapSetterGet the lower bound of the range -
getUpper
Description copied from class:RangeMapSetterGet the upper bound of the range -
toSpan
Description copied from class:RangeMapSetterCreate a closed range with the given bounds -
getPrevious
Description copied from class:RangeMapSetterGet the number immediately preceding the given bound- Specified by:
getPreviousin 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:RangeMapSetterGet the number immediately following the given bound
-