class ObjectRangeMap {

	public synchronized boolean contains(long index) {
		if (lastRange != null && lastRange.contains(index)) {
			return true;
		}
		
		int pos = getPositionOfRangeAtOrBefore(new ObjectValueRange<T>(index, index, null));		
		if (pos < 0) {
			return false;
		}
		lastRange = ranges.get(pos);
		
		return lastRange.contains(index);
	}

	public  ObjectRangeMap();

}