protected int inBoundsOrNeg1(int index) {
		if (index == -1) {
			return -1;
		}
		int lowest = getLowestIndex();
		if (index < lowest) {
			return -1;
		}
		if (index >= getHighestIndexPlusOne()) {
			return -1;
		}
		return index - lowest;
	}
Construct a restricted view of a value-sorted map

@param wrapped the value-sorted map to restrict
@param comparator the value comparator
@param hasFrom true if there exists a lower bound
@param fromValue the lower bound, if present
@param fromInclusive true to include the lower bound
@param hasTo true if there exists an upper bound
@param toValue the upper bound, if present
@param toInclusive true to include the upper bound
Ghidra/Framework/Generic/src/main/java/ghidra/generic/util/datastruct/RestrictedValueSortedMap.java