All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unlaxer.util.IndexTuple Maven / Gradle / Ivy

package org.unlaxer.util;

import java.util.HashMap;
import java.util.Map;

import org.unlaxer.Range;
import org.unlaxer.SortedRanges;
import org.unlaxer.util.collection.ID;

public class IndexTuple {
	
	Map rangesByID;
//	Map> rangesByID;

	public IndexTuple() {
		super();
		rangesByID = new HashMap();
	}
	
	public void put(ID id , Range range) {
		
		SortedRanges ranges = rangesByID.computeIfAbsent(id, _id-> new SortedRanges());
		ranges.add(range);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy